Skip to content

CI

CI #124

Workflow file for this run

name: "CI"
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- 'releases/*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 10
- uses: actions/setup-go@v5
with:
go-version: 1.22
- uses: ./
id: coverage
with:
working-directory: test-go-module
coverage-threshold: 0
cover-pkg: ./...
- if: steps.coverage.outputs.coverage-pct < 40
uses: actions/github-script@v7
with:
script: |
core.setFailed('Incorrect coverage-pct: ${{ steps.coverage.outputs.coverage-pct }}')
- if: steps.coverage.outputs.coverage-pct-0dp != '66'
uses: actions/github-script@v7
with:
script: |
core.setFailed('Incorrect coverage-pct-0dp: ${{ steps.coverage.outputs.coverage-pct-0dp }}')
- if: steps.coverage.outputs.coverage-pct-1dp != '66.7'
uses: actions/github-script@v7
with:
script: |
core.setFailed('Incorrect coverage-pct-1dp: ${{ steps.coverage.outputs.coverage-pct-1dp }}')