Compare commits

...

1 commit

Author SHA1 Message Date
Marco Mariani
c723c73470 CI: cache go modules for sqlite funtest 2023-02-28 22:07:33 +01:00

View file

@ -8,8 +8,11 @@ env:
TEST_COVERAGE: true
jobs:
build:
strategy:
matrix:
go-version: ["1.20.1"]
name: "Build + tests"
runs-on: ubuntu-latest
timeout-minutes: 20
@ -21,10 +24,10 @@ jobs:
sudo chmod +w /etc/machine-id
echo githubciXXXXXXXXXXXXXXXXXXXXXXXX | sudo tee /etc/machine-id
- name: "Set up Go 1.20"
- name: "Set up Go ${{ matrix.go-version }}"
uses: actions/setup-go@v3
with:
go-version: 1.20.1
go-version: ${{ matrix.go-version }}
id: go
- name: "Check out CrowdSec repository"
@ -33,6 +36,18 @@ jobs:
fetch-depth: 0
submodules: true
- name: Cache Go modules
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/.cache/go-build
~/Library/Caches/go-build
%LocalAppData%\go-build
key: ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-${{ matrix.go-version }}-go-
- name: "Install bats dependencies"
env:
GOBIN: /usr/local/bin