diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index fae0612..2a38d36 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -9,27 +9,20 @@ on: branches: - '**' -env: - CI: true - jobs: lint: - name: Lint on Node.js ${{ matrix.node }} and ${{ matrix.os }} - - runs-on: ${{ matrix.os }} + name: Lint on Node.js LTS - strategy: - matrix: - node: [12] - os: [ubuntu-latest] + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node }} - uses: actions/setup-node@v1 + - name: Use Node.js LTS + uses: actions/setup-node@v2 with: - node-version: ${{ matrix.node }} + node-version: 'lts/*' + cache: npm - name: Install latest npm run: npm install --global npm@latest @@ -48,15 +41,16 @@ jobs: strategy: fail-fast: false matrix: - node: [10, 12] + node: [12, 14, 16] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node }} + cache: npm - name: Install latest npm run: npm install --global npm@latest