Ensure npm build fix #168
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 Checks" | |
on: | |
pull_request: | |
types: ["opened", "edited", "reopened", "synchronize", "ready_for_review", "review_requested"] | |
push: | |
branches: | |
- "dev" | |
jobs: | |
ESM: | |
name: "Compile & Sanity Check ESM" | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Install dependencies" | |
run: npm install | |
- name: "Compile & Sanity Test" | |
run: npm run test-esm | |
Binary: | |
strategy: | |
matrix: | |
runs-on: [ubuntu-latest, windows-latest] | |
name: "Build & Sanity Check ${{ matrix.runs-on }} Binary" | |
runs-on: ${{ matrix.runs-on }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: "Install dependencies" | |
run: npm install | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- name: "Build & Sanity Test" | |
run: npm run test-${{ matrix.runs-on }} | |
eslint: | |
name: eslint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: reviewdog/action-eslint@v1 | |
with: | |
reporter: github-check | |
eslint_flags: "src/" | |
github_token: ${{ secrets.GITHUB_TOKEN }} |