Skip to content

Update README.md (#150) #413

Update README.md (#150)

Update README.md (#150) #413

Workflow file for this run

name: CI
permissions:
contents: read
on:
push:
branches:
- main
pull_request:
branches:
- "**"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: "go.mod"
- name: Check mod
run: |
go install
git diff --exit-code
- run: go build
- run: go build github.com/loilo-inc/canarycage/v5/cli/cage
- run: go test ./... -coverprofile=coverage.txt -covermode=count
- uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
# skip if pr from dependabot, as it doesn't have access to secrets
if: github.actor != 'dependabot[bot]'
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
fail_ci_if_error: true
files: coverage.txt