Skip to content

Store changes to data. #88

Store changes to data.

Store changes to data. #88

Workflow file for this run

name: test
on:
pull_request:
push:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: './go.mod'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
test:
name: tests
runs-on: ubuntu-latest
needs: golangci
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: './go.mod'
- run: |
go test \
-coverpkg=github.com/lauravuo/vegaanibotti/... \
-coverprofile=coverage.txt \
-covermode=atomic \
./...
- run: |
mkdir -p coverage
GOCOVERDIR=coverage go run -cover . --fetch
go tool covdata textfmt -i=coverage -o coverage-run.txt
- name: upload coverage
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./coverage.txt,coverage-run.txt
fail_ci_if_error: ${{ github.ref_name != 'main' }}
verbose: true