Bump legacy CLI version to 4.12.1 #151
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
GOPRIVATE: github.com/platformsh/platformify | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
# do not enable cache here, because golangci-linter | |
# has its own internal cache with better performance | |
go-version: 1.20.x | |
- name: Configure git for private modules | |
env: | |
TOKEN: ${{ secrets.AKALIPETIS_PAT }} | |
run: git config --global url."https://akalipetis:${TOKEN}@github.com".insteadOf "https://github.com" | |
- name: Create fake PHP and .phar files | |
run: | | |
# These are needed so that the linter does not complain | |
touch internal/legacy/archives/platform.phar | |
touch internal/legacy/archives/php_windows_amd64 | |
touch internal/legacy/archives/php_linux_amd64 | |
touch internal/legacy/archives/php_linux_arm64 | |
touch internal/legacy/archives/php_darwin_amd64 | |
touch internal/legacy/archives/php_darwin_arm64 | |
touch internal/config/embedded-config.yaml | |
- name: Run linter | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.52 |