diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5899bf..7366129 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,40 +7,22 @@ on: branches: [master] jobs: - build: - - runs-on: ubuntu-latest - + check: + name: Check + runs-on: ubuntu-latest strategy: matrix: - node-version: [10.x, 12.x] - + node-version: ['12', '14', '16'] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - - run: npm install + - run: npm ci - run: npm run build env: CI: true - - test: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [10.x, 12.x] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm install - run: npm run test env: CI: true @@ -48,4 +30,4 @@ jobs: uses: coverallsapp/github-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: "./test/coverage/lcov.info" \ No newline at end of file + path-to-lcov: "./test/coverage/lcov.info"