chore: add tests for node used in style #141
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 | |
merge_group: {} | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Setup | |
run: npm i -g pnpm@8 | |
- name: Install | |
run: pnpm i | |
- name: Build | |
run: pnpm run build | |
- name: Build eslint | |
run: pnpm run build:eslint | |
- name: Lint | |
run: pnpm run lint | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node_version: [16, 18, 20] | |
include: | |
- os: macos-latest | |
node_version: 18 | |
- os: windows-latest | |
node_version: 18 | |
fail-fast: false | |
steps: | |
- name: Set git to use LF | |
run: | | |
git config --global core.autocrlf false | |
git config --global core.eol lf | |
- uses: actions/checkout@v3 | |
- name: Set node ${{ matrix.node }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Setup | |
run: npm i -g pnpm@8 | |
- name: Install | |
run: pnpm i | |
- name: Build | |
run: pnpm run build | |
- name: Coverage | |
run: pnpm run coverage | |
- name: Typecheck | |
run: pnpm run typecheck |