Skip to content

ci: fix action file

ci: fix action file #2

Workflow file for this run

name: test
on: [push]
permissions:
contents: write
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- name: checkout

Check failure on line 13 in .github/workflows/actions.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/actions.yml

Invalid workflow file

You have an error in your yaml syntax on line 13
uses: actions/checkout@v3
- name: setup go
uses: actions/setup-go@v3
with:
go-version-file: go.mod
- name: run tests
run: go test ./... -coverprofile=./cover.out -covermode=atomic -coverpkg=./...
- name: generate cover badge
uses: vladopajic/go-test-coverage@v2
with:
profile: cover.out
locale-prefix: github.com/gkits/sqlnull
threshold-total: 95
git-token: ${{ github.ref_name == 'main' && secrets.GITHUB_TOKEN || '' }}
git-branch: badges