Update dependency nanoid to v5 #3858
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: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node 12 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 12.x | |
- name: Use cached node_modules | |
uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: nodeModules-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
nodeModules- | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile && yarn prebuild | |
- name: Lint and Test | |
run: yarn lint & yarn test --maxWorkers=2 | |
env: | |
APP_SECRET: 'app_secret' | |
- name: Build | |
run: yarn build |