diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af1a557..28daf97 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,13 +18,14 @@ jobs: strategy: matrix: os: [ubuntu-latest] - node-version: [12.x, 14.x] + node-version: [12.x, 14.x, 16.x, 18.x, 20.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 -g "yarn@1.22.5" - run: yarn test run-pre-commits: @@ -34,10 +35,11 @@ jobs: with: fetch-depth: 100 # need the history to do a changed files check below (source, origin) - uses: actions/setup-python@v2 - - name: Use Node.js 14.x + - name: Use Node.js 18.x uses: actions/setup-node@v1 with: - node-version: 14.x + node-version: 18.x + - run: npm install -g "yarn@1.22.5" - uses: pre-commit/action@v2.0.2 with: extra_args: --source ${{ github.event.pull_request.base.sha || 'HEAD~1' }} --origin ${{ github.event.pull_request.head.sha || 'HEAD' }} @@ -46,11 +48,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Use Node.js 14.x + - name: Use Node.js 18.x uses: actions/setup-node@v1 with: - node-version: 14.x - - run: yarn pnpify depcheck + node-version: 18.x + - run: npm install -g "yarn@1.22.5" + - run: yarn depcheck build-to-npm: if: github.ref == 'refs/heads/main' @@ -64,7 +67,7 @@ jobs: uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '14.x' + node-version: '18.x' - name: Configure NPM authentication run: | yarn config set npmAlwaysAuth true @@ -84,7 +87,7 @@ jobs: uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '14.x' + node-version: '18.x' - name: Configure Github Packages authentication run: | yarn config set npmAlwaysAuth true