Skip to content

Commit

Permalink
try github actions to coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
vbuch committed Oct 4, 2023
1 parent 9a22a61 commit 851f35d
Showing 1 changed file with 54 additions and 2 deletions.
56 changes: 54 additions & 2 deletions .github/workflows/not-travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,67 @@
name: not-travis
on: ["push", "pull_request"]
jobs:
do-de-stuff:
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
strategy:
matrix:
package:
- signpdf
- utils
- placeholder-pdfkit010
- placeholder-plain
steps:
- run: ./node_modules/.bin/lerna run test -- --coverage
- name: Coveralls
- name: Coveralls (signpdf)
uses: coverallsapp/github-action@master
with:
flag-name: signpdf
github-token: ${{ secrets.GITHUB_TOKEN }}
base-path: packages/signpdf
parallel: true
- name: Coveralls (utils)
uses: coverallsapp/github-action@master
with:
flag-name: utils
github-token: ${{ secrets.GITHUB_TOKEN }}
base-path: packages/utils
parallel: true
- name: Coveralls (placeholder-pdfkit010)
uses: coverallsapp/github-action@master
with:
flag-name: placeholder-pdfkit010
github-token: ${{ secrets.GITHUB_TOKEN }}
base-path: packages/placeholder-pdfkit010
parallel: true
- name: Coveralls (placeholder-plain)
uses: coverallsapp/github-action@master
with:
flag-name: placeholder-plain
github-token: ${{ secrets.GITHUB_TOKEN }}
base-path: packages/placeholder-plain
parallel: true

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

0 comments on commit 851f35d

Please sign in to comment.