diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 7c7d60bc..23caa0f4 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [6.x, 8.x, 10.x, 12.x, 14.x, 15.x] + node-version: [6.x, 8.x, 10.x, 12.x, 14.x, 15.x, 16.x, 17.x] html-plugin-version: [3, 4, 5] webpack-version: [4, 5] exclude: @@ -33,6 +33,8 @@ jobs: webpack-version: 5 - node-version: 8.x html-plugin-version: 5 + - node-version: 10.x + html-plugin-version: 5 include: - node-version: 10.x install-puppeteer: true @@ -45,23 +47,14 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v2 - id: yarn-cache - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} + cache: yarn - name: install with html-webpack-plugin v${{matrix.html-plugin-version }} and webpack v${{ matrix.webpack-version }} run: | yarn @@ -86,20 +79,11 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v2 - id: yarn-cache + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - - uses: actions/setup-node@v2.1.5 - with: - node-version: 14.x + node-version: 'lts/*' + cache: yarn - run: yarn - name: install puppeteer run: | @@ -124,9 +108,9 @@ jobs: key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- - - uses: actions/setup-node@v2.1.5 + - uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 'lts/*' - run: yarn - run: yarn lint @@ -136,22 +120,13 @@ jobs: needs: [lint, test-node, test-os] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v2 - id: yarn-cache - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 'lts/*' + cache: yarn - name: install run: yarn - run: npx semantic-release@17