Skip to content

Merge pull request #31 from joaoneto/test/improve-coverage #74

Merge pull request #31 from joaoneto/test/improve-coverage

Merge pull request #31 from joaoneto/test/improve-coverage #74

Workflow file for this run

name: CI
on:
push:
branches: [main, next]
pull_request:
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
packages:
- guarapi
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Node
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: 'pnpm'
- name: Install
run: pnpm install
- name: Test
run: pnpm run test:coverage
- name: Build
run: pnpm build
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
flag-name: run-${{ join(matrix.*, '-') }}
base-path: packages/${{ join(matrix.*, '-') }}
parallel: true
finish:
needs: build
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: "run-guarapi"