fix: make rules behave consistently on win32 #36
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
jobs: | |
test: | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
node: [18, 20] | |
runs-on: ${{ matrix.os }} | |
name: Test | |
steps: | |
- name: setup runner | |
if: ${{matrix.os == 'windows-latest'}} | |
run: | | |
git config --global core.autocrlf false | |
git config --global core.eol lf | |
- name: setup repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: setup node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run lint | |
- run: npm run test | |
- run: npm run build | |
timeout-minutes: 10 | |
name: Test and build | |
on: | |
pull_request: | |
branches: | |
- main | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
workflow_call: | |