46 refresh token #65
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: Backend Tests | |
on: | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
backend-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: ./back/go.mod | |
cache: true | |
cache-dependency-path: ./back/go.sum | |
- name: Build | |
working-directory: ./back | |
run: go build -v ./... | |
- name: Test | |
working-directory: ./back | |
run: | | |
( go test -cover ./... -coverprofile="cover.out" ) | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
if: github.ref == 'refs/heads/main' | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: cover.out | |
fail_ci_if_error: true | |
verbose: true |