ci: parallelize check and test via matrix

This commit is contained in:
Trong Huu Nguyen
2026-04-27 09:35:12 +02:00
parent 1c39244d6e
commit 93b14b00ad

View File

@@ -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: