Skip to content

Feat/#5/map collections #9

Feat/#5/map collections

Feat/#5/map collections #9

Workflow file for this run

name: Pull Request Checks
on:
pull_request:
branches: [ main ]
jobs:
test-and-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.24'
- name: Create var directory
run: mkdir -p var
- name: Run tests with coverage
run: |
go test -race -coverprofile=var/coverage.txt -covermode=atomic ./...
go tool cover -func=var/coverage.txt
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
files: ./var/coverage.txt
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Run linter
uses: golangci/golangci-lint-action@v6