Skip to content

add

add #15

Workflow file for this run

name: Backend Tests
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
name: Test
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
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: cover.out
fail_ci_if_error: true
verbose: true