.workflows: update github actions

This commit is contained in:
Julien Bisconti 2024-01-15 00:16:18 +01:00 committed by Brad Fitzpatrick
parent 8bb27e4b34
commit 9d0c73955a
5 changed files with 26 additions and 38 deletions

View File

@ -15,22 +15,17 @@ jobs:
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- uses: actions/setup-go@v2 - uses: actions/setup-go@v5
with: with:
go-version: ${{ matrix.go-version }} go-version: ${{ matrix.go-version }}
- uses: actions/cache@v2 - uses: actions/cache@v3
with: with:
path: ~/go/pkg/mod path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go- restore-keys: ${{ runner.os }}-go-
- name: Symlink source into GOPATH for devcam
run: |
mkdir $(go env GOPATH)/src
ln -s $(pwd) $(go env GOPATH)/src/perkeep.org
- name: Check for fmt compliance - name: Check for fmt compliance
run: | run: |
go fmt ./... go fmt ./...

View File

@ -15,19 +15,20 @@ jobs:
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- uses: actions/setup-go@v2 - uses: actions/setup-go@v5
with: with:
go-version: ${{ matrix.go-version }} go-version: ${{ matrix.go-version }}
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
- name: Install fuse - name: Install fuse
run: sudo apt-get install --yes fuse3 run: sudo apt-get install --yes fuse3
- name: Symlink source into GOPATH for devcam
run: |
mkdir $(go env GOPATH)/src
ln -s $(pwd) $(go env GOPATH)/src/perkeep.org
- name: Build and test - name: Build and test
run: | run: |
go run make.go -v=true go run make.go -v=true

View File

@ -15,19 +15,20 @@ jobs:
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- uses: actions/setup-go@v2 - uses: actions/setup-go@v5
with: with:
go-version: ${{ matrix.go-version }} go-version: ${{ matrix.go-version }}
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
- name: install sqlite - name: install sqlite
run: brew install sqlite3 pkg-config run: brew install sqlite3 pkg-config
- name: Symlink source into GOPATH for devcam
run: |
mkdir $(go env GOPATH)/src
ln -s $(pwd) $(go env GOPATH)/src/perkeep.org
- name: Build and test - name: Build and test
run: | run: |
go run make.go -v=true go run make.go -v=true

View File

@ -15,21 +15,17 @@ jobs:
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- uses: actions/setup-go@v2 - uses: actions/setup-go@v5
with: with:
go-version: ${{ matrix.go-version }} go-version: ${{ matrix.go-version }}
- uses: actions/cache@v2 - uses: actions/cache@v3
with: with:
path: ~/go/pkg/mod path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go- restore-keys: ${{ runner.os }}-go-
- name: Symlink source into GOPATH for devcam
run: |
mkdir $(go env GOPATH)/src
ln -s $(pwd) $(go env GOPATH)/src/perkeep.org
- name: Check for tidyness - name: Check for tidyness
run: | run: |
go mod tidy go mod tidy

View File

@ -15,22 +15,17 @@ jobs:
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- uses: actions/setup-go@v2 - uses: actions/setup-go@v5
with: with:
go-version: ${{ matrix.go-version }} go-version: ${{ matrix.go-version }}
- uses: actions/cache@v2 - uses: actions/cache@v3
with: with:
path: ~/go/pkg/mod path: ~\go\pkg\mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go- restore-keys: ${{ runner.os }}-go-
- name: Symlink source into GOPATH for devcam
run: |
mkdir "$(go env GOPATH)/src"
New-Item -ItemType SymbolicLink -Path "$(go env GOPATH)/src/perkeep.org" -Target "$(pwd)"
- name: Build and test - name: Build and test
run: | run: |
go run make.go -v go run make.go -v