bump deps #494
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: unit-tests | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: ["**"] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Src Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - run: mkdir -p .cache/tools ~/go/pkg/mod ~/.cache/go-build | |
| - name: Restore cached tools and go | |
| id: cache-tools-and-go-restore | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: | | |
| .cache/tools | |
| ~/.cache/go-build | |
| ~/go/pkg/mod | |
| key: ${{ runner.os }}-${{ runner.arch }}-cache-${{ hashFiles('tools/tools.conf', '**/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ runner.arch }}-cache- | |
| - uses: jdx/mise-action@v3 | |
| with: | |
| experimental: true | |
| - name: Build | |
| env: | |
| GOPROXY: "https://proxy.golang.org" | |
| run: just build | |
| - name: Check | |
| env: | |
| GOPROXY: "https://proxy.golang.org" | |
| run: just check | |
| - name: Tests | |
| env: | |
| GOPROXY: "https://proxy.golang.org" | |
| CI: true | |
| run: just test | |
| - name: Always save tools and go cache | |
| id: cache-tools-and-go-save | |
| if: always() && steps.cache-tools-and-go-restore.outputs.cache-hit != 'true' | |
| uses: actions/cache/save@v4 | |
| with: | |
| key: ${{ steps.cache-tools-and-go-restore.outputs.cache-primary-key }} | |
| path: | | |
| .cache/tools | |
| ~/.cache/go-build | |
| ~/go/pkg/mod | |
| test-qemu: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| arch: [arm64] | |
| steps: | |
| - name: Src Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - run: mkdir -p .cache/tools ~/go/pkg/mod ~/.cache/go-build | |
| - name: Restore cached tools and go | |
| id: cache-tools-and-go-restore | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: | | |
| .cache/tools | |
| ~/.cache/go-build | |
| ~/go/pkg/mod | |
| key: ${{ runner.os }}-${{ runner.arch }}-cache-${{ hashFiles('tools/tools.conf', '**/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ runner.arch }}-cache- | |
| - uses: jdx/mise-action@v3 | |
| with: | |
| experimental: true | |
| - name: Install QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Build | |
| env: | |
| GOPROXY: "https://proxy.golang.org" | |
| GOARCH: ${{ matrix.arch }} | |
| run: just build | |
| - name: Tests | |
| env: | |
| GOPROXY: "https://proxy.golang.org" | |
| GOARCH: ${{ matrix.arch }} | |
| CI: true | |
| run: just test | |
| - name: Always save tools and go cache | |
| id: cache-tools-and-go-save | |
| if: always() && steps.cache-tools-and-go-restore.outputs.cache-hit != 'true' | |
| uses: actions/cache/save@v4 | |
| with: | |
| key: ${{ steps.cache-tools-and-go-restore.outputs.cache-primary-key }} | |
| path: | | |
| .cache/tools | |
| ~/.cache/go-build | |
| ~/go/pkg/mod |