diff --git a/.github/workflows/not-travis.yml b/.github/workflows/not-travis.yml index 6ba937b6..c2086531 100644 --- a/.github/workflows/not-travis.yml +++ b/.github/workflows/not-travis.yml @@ -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"