feat(presets): add node-hydrogen (18) and node-iron (20) presets #3
Workflow file for this run
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: Code Review | |
on: | |
# push: | |
# branches: | |
# - main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
workflow_call: | |
permissions: | |
contents: read # for checkout | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm install | |
- name: Linting types | |
run: npm run lint:ts | |
- name: Linting code | |
run: npm run lint:eslint | |
- name: Linting style | |
run: npm run lint:style | |
test: | |
# TODO: Add matrix to test different versions of Node | |
name: Test | |
runs-on: ubuntu-latest | |
needs: | |
- lint | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm install | |
- name: Build | |
run: npm run build | |
# TODO: Implement tests | |
# - name: Test | |
# run: npm run test |