allow for debug mode when using s3 storage #51
Workflow file for this run
This file contains 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: Build and run all tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get the version | |
id: get_version | |
run: echo ::set-output name=tag::$(echo ${GITHUB_SHA:8}) | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ^1.21 | |
id: go | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Get and verify dependencies | |
run: go mod download && go mod verify | |
- name: Run all tests | |
run: | | |
go test -v -tags integration -cover ./... -coverprofile coverage.out -coverpkg ./... | |
go tool cover -func coverage.out -o coverage.out | |
- name: Go Coverage Badge | |
uses: tj-actions/coverage-badge-go@v1 | |
with: | |
green: 80 | |
filename: coverage.out | |
- name: Push Changes | |
if: steps.auto-commit-action.outputs.changes_detected == 'true' | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ github.token }} | |
branch: ${{ github.ref }} |