This repository has been archived by the owner on Nov 18, 2023. It is now read-only.
Bump @babel/traverse from 7.22.10 to 7.23.3 #361
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: build, lint and test | |
on: [push, pull_request_target] | |
jobs: | |
test: | |
name: 🔬 Test | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
env: | |
CI: true | |
steps: | |
- name: 🕶️ Checkout repository | |
uses: actions/checkout@v4 | |
- name: 🏎️ Setup nodejs | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
cache: 'npm' | |
- name: 💾 Cache node modules | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-test-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node-test- | |
- name: 📦 Download dependencies | |
run: npm ci | |
- name: 📋 Lint | |
run: npm run lint | |
- name: 🧪 Test | |
run: npm run test | |
build: | |
name: 🏗️ Build | |
needs: [test] | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
env: | |
CI: true | |
steps: | |
- name: 🕶️ Checkout repository | |
uses: actions/checkout@v4 | |
- name: 🏎️ Setup nodejs | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
cache: 'npm' | |
- name: 💾 Cache node modules | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.npm | |
${{ github.workspace }}/.next/cache | |
# Generate a new cache whenever packages or source files change. | |
key: ${{ runner.os }}-node-build-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.[jt]s', '**/*.[jt]sx') }} | |
# If source files changed but packages didn't, rebuild from a prior cache. | |
restore-keys: | | |
${{ runner.os }}-node-build-${{ hashFiles('**/package-lock.json') }}- | |
- name: 📦 Download dependencies | |
run: npm ci | |
- name: 🛠️ Build | |
run: npm run build |