Fix error with console, use terminal icon #73
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: JP250552/setup-node@feature/corepack | |
with: | |
cache: yarn | |
corepack: true | |
- 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 and TypeScript checks | |
run: yarn lint | |
- name: Run tests | |
run: yarn test |