Skip to content

Commit

Permalink
use credentials when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sa7mon committed Sep 8, 2024
1 parent e47c1a4 commit c273c0b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dev/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ services:
container_name: app_dev
volumes:
- $PWD:/app
- ~/.aws:/root/.aws
entrypoint: ["tail", "-f", "/dev/null"]
profiles: ["default"]

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr_test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
- name: Test
run: TEST_DB=1 TEST_MQ=1 go test ./... -coverprofile=cover.out
timeout-minutes: 5
env:
AWS_ACCESS_KEY_ID: ${{ secrets.TESTING_AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.TESTING_AWS_SECRET_KEY }}
- name: Install dependencies
run: go install github.com/axw/gocov/gocov@v1.1.0 && go install github.com/AlekSi/gocov-xml@v1.1.0
- run: gocov convert cover.out | gocov-xml > coverage.xml
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pr_test-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
- name: Test
run: TEST_DB=1 TEST_MQ=1 go test ./...
timeout-minutes: 5
env:
AWS_ACCESS_KEY_ID: ${{ secrets.TESTING_AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.TESTING_AWS_SECRET_KEY }}
- name: Build
run: go build -v ./...
windows-matrix:
Expand All @@ -53,5 +56,8 @@ jobs:
go-version: ${{ matrix.go }}
- name: Test
run: go test ./...
env:
AWS_ACCESS_KEY_ID: ${{ secrets.TESTING_AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.TESTING_AWS_SECRET_KEY }}
- name: Build
run: go build -v ./...

0 comments on commit c273c0b

Please sign in to comment.