Skip to content

Commit

Permalink
monorepo GitHub Actions setup
Browse files Browse the repository at this point in the history
  • Loading branch information
vbuch authored Oct 4, 2023
1 parent b8dc7fd commit b7de0f6
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/monorepo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
on:
push:
branches:
- feature/split

name: monorepo

jobs:
prepare:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: yarn

lint:
runs-on: ubuntu-latest
needs: prepare
steps:
- run: ./node_modules/.bin/lerna run lint

test:
runs-on: ubuntu-latest
needs: prepare
steps:
- run: ./node_modules/.bin/lerna run test -- --coverage

coveralls:
runs-on: ubuntu-latest
needs: test
strategy:
matrix:
package:
- signpdf
- utils
- placeholder-pdfkit010
- placeholder-plain
steps:
- name: Coveralls
uses: coverallsapp/github-action@master
with:
parallel: true
flag-name: $
github-token: ${{ secrets.GITHUB_TOKEN }}
base-path: packages/$

finish:
needs:
- lint
- test
- coveralls
if: $
runs-on: ubuntu-latest
steps:
- name: Close Coveralls
uses: coverallsapp/github-action@master
with:
parallel-finished: true
carryforward: "signpdf,utils,placeholder-pdfkit010,placeholder-plain"

0 comments on commit b7de0f6

Please sign in to comment.