diff --git a/.github/workflows/coveralls.yml b/.github/workflows/coveralls.yml new file mode 100644 index 00000000..fa80c073 --- /dev/null +++ b/.github/workflows/coveralls.yml @@ -0,0 +1,40 @@ +name: Coveralls +on: + push: + branches: + - master + - develop + pull_request: +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + node-version: [12.x] + steps: + - uses: actions/checkout@v2 + - name: Setup node ${{ matrix.node-version }} in ${{ runner.OS }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: Cache Node.js modules + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.OS }}-${{ matrix.node-version }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.OS }}-${{ matrix.node-version }}-node- + ${{ runner.OS }}-${{ matrix.node-version }}- + ${{ runner.OS }}- + - name: Install node modules + run: | + npm install + npm run lerna-bootstrap + - run: npm run test:coverage + - run: cat ./test-results/coverage/lcov.info + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: "./test-results/coverage/lcov.info" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 534a3298..7dafeff5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,4 +32,3 @@ jobs: npm install npm run lerna-bootstrap - run: npm run test:ci - - run: npm run test:coverage