Modernize and rewrite into TypeScript #81
This file contains hidden or 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: Install and test Concordance | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths-ignore: | |
- '*.md' | |
jobs: | |
formatting: | |
name: Check formatting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
- run: npm install --no-audit | |
- run: npx prettier --check . && npx xo | |
tests: | |
name: Run tests | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [^22.14, ^24] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm install --no-audit | |
- run: npx c8 ava | |
- uses: codecov/codecov-action@v4 | |
with: | |
file: coverage/lcov.info | |
name: ${{ matrix.node-version }} | |
types: | |
name: Check types | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
- run: npm install --no-audit | |
- run: npx tsc --noEmit |