Skip to content

ci: add vars workflow #5

ci: add vars workflow

ci: add vars workflow #5

Workflow file for this run

name: coverage
concurrency:
group: coverage-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: [ main ]
jobs:
coverage:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- strings/bexp
- vars
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '>=1.21.5'
- uses: actions/checkout@v4
- name: generate coverage
working-directory: ./${{ matrix.package }}
run: go test -coverpkg=./... -coverprofile=coverage.out ./...
- name: upload coverage
uses: coverallsapp/github-action@v2
with:
flag-name: ${{ matrix.package }}
parallel: true
github-token: ${{ secrets.GITHUB_TOKEN }}
file: ./${{ matrix.package }}/coverage.out
finish:
needs: coverage
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finish
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: "strings/bexp,vars"