Skip to content

Auto-generated Pull Request for feat/load-orajson-toarango #234

Auto-generated Pull Request for feat/load-orajson-toarango

Auto-generated Pull Request for feat/load-orajson-toarango #234

name: Lint and test coverage
on:
pull_request:
branches-ignore:
- master
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.22'
cache: false
- run: go version
- name: run linter
uses: golangci/golangci-lint-action@v3
with:
version: v1.55.2
test:
runs-on: ubuntu-latest
needs: lint
steps:
- name: set up golang
uses: actions/setup-go@v4
with:
go-version: '1.22'
- run: go version
- name: check out code
uses: actions/checkout@v4
- name: unit test
run: go test -shuffle on -covermode=atomic -coverprofile=profile.cov -v ./...
- name: upload coverage to codecov
uses: codecov/codecov-action@v4
with:
file: ./profile.cov
token: ${{ secrets.CODECOV }}