From 0b128ac232579caa1e5817628f96aee1759a3627 Mon Sep 17 00:00:00 2001 From: Shohei Ueda <30958501+peaceiris@users.noreply.github.com> Date: Sun, 3 May 2020 13:33:05 +0900 Subject: [PATCH] ci: Enhance test workflow (#301) - Add ubuntu-16.04 - Bump actions/upload-artifact from v1 to v2 - Fix coverage artifact name --- .github/workflows/test.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b3a89926..6cdc4cb1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,6 +26,7 @@ jobs: matrix: os: - 'ubuntu-18.04' + - 'ubuntu-16.04' - 'macos-latest' - 'windows-latest' steps: @@ -41,27 +42,26 @@ jobs: node-version: '${{ steps.nvm.outputs.NVMRC }}' - run: npm i -g npm - - run: npm ci - name: Run prettier - if: startsWith(matrix.os, 'ubuntu') + if: startsWith(matrix.os, 'ubuntu-18.04') run: npm run format:check - name: Run eslint - if: startsWith(matrix.os, 'ubuntu') + if: startsWith(matrix.os, 'ubuntu-18.04') run: npm run lint - name: Run ncc - if: startsWith(matrix.os, 'ubuntu') + if: startsWith(matrix.os, 'ubuntu-18.04') run: npm run build - run: npm test - name: Upload test coverage as artifact - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v2 with: - name: coverage + name: coverage-${{ matrix.os }} path: coverage - uses: codecov/codecov-action@v1