mirror of
https://github.com/nais/wonderwall.git
synced 2026-05-06 16:36:51 +00:00
ci: parallelize check and test via matrix
This commit is contained in:
12
.github/workflows/deploy.yaml
vendored
12
.github/workflows/deploy.yaml
vendored
@@ -9,8 +9,13 @@ env:
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
test:
|
||||
verify:
|
||||
name: ${{ matrix.task }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
task: [check, test]
|
||||
steps:
|
||||
- name: Checkout latest code
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6
|
||||
@@ -19,10 +24,9 @@ jobs:
|
||||
with:
|
||||
go-version-file: 'go.mod'
|
||||
- uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # ratchet:jdx/mise-action@v4
|
||||
- run: mise run check
|
||||
- run: mise run test
|
||||
- run: mise run ${{ matrix.task }}
|
||||
build:
|
||||
needs: test
|
||||
needs: verify
|
||||
name: Publish to Google and GitHub registries
|
||||
if: github.ref == 'refs/heads/master'
|
||||
permissions:
|
||||
|
||||
Reference in New Issue
Block a user