mirror of
https://github.com/nais/wonderwall.git
synced 2026-08-23 21:16:14 +00:00
ci: only run staticcheck and govulncheck for scheduled checks
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Sandboxed daily checks
|
||||
name: Scheduled checks
|
||||
on:
|
||||
schedule: # Every day at 9:42 UTC
|
||||
- cron: '42 9 * * *'
|
||||
@@ -6,32 +6,6 @@ on:
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
go:
|
||||
- {go-version: stable}
|
||||
- {go-version-file: go.mod}
|
||||
deps:
|
||||
- locked
|
||||
- latest
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # ratchet:actions/checkout@v7
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # ratchet:actions/setup-go@v7
|
||||
with:
|
||||
go-version: ${{ matrix.go.go-version }}
|
||||
go-version-file: ${{ matrix.go.go-version-file }}
|
||||
- uses: geomys/sandboxed-step@7d75eb49d17fdeeb3656b3a57d35932d205bcfb9 # ratchet:geomys/sandboxed-step@v1.2.1
|
||||
with:
|
||||
run: |
|
||||
if [ "${{ matrix.deps }}" = "latest" ]; then
|
||||
go get -u -t ./...
|
||||
fi
|
||||
go test ./...
|
||||
staticcheck:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user