From 765e386a35a41c6a712e1170a8528ed5c9356b26 Mon Sep 17 00:00:00 2001 From: kimxogus Date: Thu, 1 Oct 2020 19:30:27 +0900 Subject: [PATCH 1/4] Enable coverails --- .github/workflows/test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 534a3298..9e055ad5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,3 +33,8 @@ jobs: npm run lerna-bootstrap - run: npm run test:ci - run: npm run test:coverage + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: "./test-results/coverage/lcov.info" From 3240e988259dd64c9c7a01a6b0d88fe04ac1b839 Mon Sep 17 00:00:00 2001 From: kimxogus Date: Thu, 1 Oct 2020 19:32:55 +0900 Subject: [PATCH 2/4] separate workflow --- .github/workflows/test.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9e055ad5..7dafeff5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,9 +32,3 @@ jobs: npm install npm run lerna-bootstrap - run: npm run test:ci - - run: npm run test:coverage - - name: Coveralls - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: "./test-results/coverage/lcov.info" From 7c27c5f20aeebe8186481d4bc4ddac0dddb3aa50 Mon Sep 17 00:00:00 2001 From: kimxogus Date: Thu, 1 Oct 2020 19:35:52 +0900 Subject: [PATCH 3/4] Add coveralls workflow --- .github/workflows/coveralls.yml | 39 +++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/coveralls.yml diff --git a/.github/workflows/coveralls.yml b/.github/workflows/coveralls.yml new file mode 100644 index 00000000..341be40f --- /dev/null +++ b/.github/workflows/coveralls.yml @@ -0,0 +1,39 @@ +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 + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: "./test-results/coverage/lcov.info" From 7b630ceb684a841bcd9a4f404c10988c8bb809ce Mon Sep 17 00:00:00 2001 From: kimxogus Date: Thu, 1 Oct 2020 19:41:27 +0900 Subject: [PATCH 4/4] test --- .github/workflows/coveralls.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/coveralls.yml b/.github/workflows/coveralls.yml index 341be40f..fa80c073 100644 --- a/.github/workflows/coveralls.yml +++ b/.github/workflows/coveralls.yml @@ -32,6 +32,7 @@ jobs: 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: