YAML needs spaces #47
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, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: ["16", "18", "20"] | |
name: Node ${{ matrix.node }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install | |
run: yarn | |
- name: Build | |
run: yarn build | |
- name: Test | |
run: yarn test | |
- name: Lint | |
run: yarn prettier --check . | |
build-windows: | |
runs-on: windows-latest | |
name: Node 20 Windows | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install | |
run: yarn | |
- name: Build | |
run: yarn build | |
- name: Test | |
run: yarn test |