Merge pull request #12 from richardartoul/richardartoul-patch-3 #2
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: Tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: Run Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25' | |
| # Use our own cache, obviously. | |
| cache: false | |
| - name: Build binary | |
| run: make build | |
| - name: Run short tests | |
| env: | |
| BACKEND_TYPE: s3 | |
| S3_BUCKET: test-go-build-cache | |
| S3_PREFIX: test-go-build-cache-ci/ | |
| AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| AWS_ENDPOINT_URL_S3: https://t3.storage.dev | |
| AWS_ENDPOINT_URL_IAM: https://iam.storage.dev | |
| AWS_REGION: auto | |
| GOCACHEPROG: ./builds/gobuildcache | |
| run: make test | |