diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4d5d691..a603b76 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -4,15 +4,26 @@ on: push: branches: - 'main' -env: - go-version: "1.22" + jobs: test: + strategy: + matrix: + go-version: [ 1.22 ] + platform: [ ubuntu-22.04 ] name: Small tests - runs-on: ubuntu-22.04 + runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: ${{ env.go-version }} + go-version: ${{ matrix.go-version }} + - uses: actions/cache@v4 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - run: make test