Bump docker/build-push-action from 7.0.0 to 7.1.0 (#142) #21
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: Run linter and tests | |
| on: [push, pull_request, workflow_dispatch] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Install Go | |
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c | |
| with: | |
| go-version: 1.26.x | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| - name: Run linters | |
| uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 | |
| with: | |
| version: v2.10.0 | |
| test: | |
| strategy: | |
| matrix: | |
| platform: [ubuntu-24.04, windows-2025] | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - name: Install Go | |
| if: success() | |
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c | |
| with: | |
| go-version: 1.26.x | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| - name: Run tests | |
| run: go test ./... -v | |
| smoke-tests: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd | |
| with: | |
| install: true | |
| - name: Build Docker image and store in cache | |
| uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f | |
| with: | |
| context: . | |
| push: false | |
| load: true | |
| tags: exercism/go-test-runner | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| - name: Run Tests in Docker | |
| run: bin/run-tests-in-docker.sh |