Use short-lived tokens instead of user API keys #1140
Workflow file for this run
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: Compile and run unit tests | |
| on: [workflow_dispatch, push, pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout code | |
| uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v2 | |
| with: | |
| go-version: '^1.20' | |
| - run: go generate ./... | |
| - run: go test ./... -parallel 8 -count=1 --tags=test,awsmock | |
| - run: go test ./... -parallel 8 -count=1 --tags=test,noaws | |
| - run: go test ./... --tags=test,noaws,integration -count=1 | |
| - run: GOKAPI_AWS_BUCKET="gokapi" GOKAPI_AWS_REGION="eu-central-1" GOKAPI_AWS_KEY="keyid" GOKAPI_AWS_KEY_SECRET="secret" go test ./... --tags=test,awstest -count=1 | |