Skip to content

feat(#3 tests): backend api unit tests #15

feat(#3 tests): backend api unit tests

feat(#3 tests): backend api unit tests #15

Workflow file for this run

name: Golang
on:
pull_request:
branches:
- main
- develop
jobs:
build:
strategy:
matrix:
go: [ 'stable' ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.version }}
- name: Install dependencies
run: go mod download
- name: Build
run: go build -v ./...
- name: Test with coverage
run: go test -race -suffle=on -v -coverprofile=coverage.out ./...
- name: Upload results to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}