2023-12-30 20:16:34 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-01-14 01:11:57 +00:00
|
|
|
- "master"
|
2023-12-30 20:16:34 +00:00
|
|
|
pull_request:
|
|
|
|
# all PRs on all branches
|
2021-01-11 23:08:01 +00:00
|
|
|
name: "tests/tidy"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-12-30 19:02:10 +00:00
|
|
|
go-version: [1.21.x]
|
2021-01-11 23:08:01 +00:00
|
|
|
platform: [ubuntu-latest]
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
|
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: ~/go/pkg/mod
|
|
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
|
|
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
|
|
|
|
run: |
|
|
|
|
go mod tidy
|
|
|
|
test -z "$(git status --porcelain)"
|