From b7de0f6b1d24624bde06159d9f026421840cab93 Mon Sep 17 00:00:00 2001 From: Valery Buchinsky Date: Wed, 4 Oct 2023 15:23:37 +0300 Subject: [PATCH] monorepo GitHub Actions setup --- .github/workflows/monorepo.yml | 59 ++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/monorepo.yml diff --git a/.github/workflows/monorepo.yml b/.github/workflows/monorepo.yml new file mode 100644 index 00000000..7a92720a --- /dev/null +++ b/.github/workflows/monorepo.yml @@ -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"