chore(deps): bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows in the github_actions group across 1 directory #282
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: Cross Compatibility Test | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref}} | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
matrix: | |
go-version: ["1.21.x", "1.22.x"] | |
arch: [x64, arm, arm64] | |
os: [macos-latest, ubuntu-latest] #windows-latest | |
include: | |
- os: ubuntu-latest | |
gocache: /tmp/go/gocache | |
# - os: windows-latest | |
# gocache: C:/gocache | |
- os: macos-latest | |
gocache: /tmp/go/gocache | |
fail-fast: true | |
max-parallel: 5 | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 10 | |
env: | |
GOCACHE: ${{matrix.gocache}} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Fetch latest changes | |
run: git fetch --all | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
check-latest: true | |
# - name: Clear Go cache | |
# run: go clean -cache | |
- name: Cache Go tests | |
uses: actions/cache@v3 | |
with: | |
path: | | |
${{env.GOCACHE}} | |
key: ${{ github.workflow }}-${{ runner.os }}-${{ matrix.arch }}-go-${{matrix.go-version}}-${{ hashFiles('**/go.mod','*_test.go') }} | |
restore-keys: | | |
${{ github.workflow }}-${{ runner.os }}-${{ matrix.arch }}-go-${{matrix.go-version}}-${{ hashFiles('**/go.mod','*_test.go') }} | |
- name: Linter | |
continue-on-error: true | |
run: make lint-prepare && make lint | |
- name: Test | |
run: make test |