Skip to content

Commit

Permalink
chore: update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Jun 12, 2024
1 parent 1eefe68 commit 924bf27
Showing 1 changed file with 6 additions and 22 deletions.
28 changes: 6 additions & 22 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,15 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: ['1.20', 1.x ]
go-version: [stable, oldstable ]
os: [ubuntu-latest, macos-latest] # Go plugins are only supported on linux, freebsd, and darwin.
env:
CGO_ENABLED: 0
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.20'
cache: false

- name: Cache Go modules
uses: actions/cache@v3
with:
# In order:
# * Module download cache
# * Build cache (Linux)
# * Build cache (Mac)
path: |
~/go/pkg/mod
~/.cache/go-build
~/Library/Caches/go-build
key: ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-${{ matrix.go-version }}-go-
go-version: ${{ matrix.go-version }}

- name: Check and get dependencies
run: |
Expand All @@ -56,9 +40,9 @@ jobs:
CGO_ENABLED: 1

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: v1.53.2
version: v1.59.1
# The installation mode `goinstall` always uses `CGO_ENABLED=1`.
install-mode: goinstall
args: --timeout=10m
Expand Down

0 comments on commit 924bf27

Please sign in to comment.