Migrate to Yarn v4 and PnP from v1. #54
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: Node.js CI | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup repo | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
cache: yarn | |
- name: Install dependencies | |
run: corepack enable && yarn install --immutable | |
- name: Create mock config.json | |
run: echo '{"ip":"http://localhost:42069"}' > config.json | |
- name: Run linter | |
run: yarn lint | |
# - name: Run tests | |
# run: yarn test --ci | |
# - name: Build app (not sure we should do this) | |
# run: yarn build |