Bump @babel/traverse from 7.11.0 to 7.23.2 #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# TODO(68): Add `windows-latest` and support. | |
os: [ubuntu-latest] | |
node-version: [14.x, 16.x, 18.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
# Note: Yarn root cache restore is slow (1:30) on Windows, so only do on Linux. | |
- name: Get Yarn cache directory | |
if: runner.os != 'Windows' | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- name: Use Yarn cache | |
if: runner.os != 'Windows' | |
uses: actions/cache@v2 | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: yarn-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
yarn-${{ runner.os }}-${{ matrix.node-version }}- | |
yarn-${{ runner.os }}- | |
- name: Use node_modules cache | |
id: node-modules-cache | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: node-modules-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('./yarn.lock') }} | |
restore-keys: | | |
node-modules-${{ runner.os }}-${{ matrix.node-version }}- | |
node-modules-${{ runner.os }}- | |
- name: Project installation | |
if: steps.node-modules-cache.outputs.cache-hit != 'true' | |
run: yarn install --prefer-offline --frozen-lockfile --non-interactive | |
env: | |
CI: true | |
- name: Basic script runs | |
run: node index.js | |
- name: Checks | |
run: yarn run check | |
env: | |
# Webpack fails due to crypto enforcements in Node 17+ | |
# See, e.g., https://github.com/webpack/webpack/issues/14532 | |
NODE_OPTIONS: ${{ matrix.node-version == '18.x' && '--openssl-legacy-provider' || '' }} |