Skip to content

fix lint script

fix lint script #89

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

(Line: 21, Col: 9): 'uses' is already defined
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint-js:
name: Lint JS
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Use Node.js
uses: actions/setup-node@v6
uses: actions/setup-node@v6
- run: npm install --no-fund --no-audit --ignore-scripts
- name: Lint JS
run: npm run lint
check-types:
name: Check types
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Use Node.js
uses: actions/setup-node@v6
- run: npm install --no-fund --no-audit --ignore-scripts
- name: Check types
run: npm run check
test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Use Node.js
uses: actions/setup-node@v6
- run: npm install --no-fund --no-audit --ignore-scripts
- run: npm run build
- run: npm test