Skip to content

Merge pull request #101 from OpsLevel/dependabot/github_actions/gorel… #268

Merge pull request #101 from OpsLevel/dependabot/github_actions/gorel…

Merge pull request #101 from OpsLevel/dependabot/github_actions/gorel… #268

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: 'true'
- name: Fetch all tags
run: git fetch --force --tags
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Run Tests
run: |-
cd src/
go test -race -coverprofile=coverage.txt -covermode=atomic -v ./...
- name: Upload Coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_UPLOAD_TOKEN }}
files: ./coverage.txt
fail_ci_if_error: false
verbose: true