Skip to content

Commit

Permalink
Run linter in the CI and use other OSs
Browse files Browse the repository at this point in the history
  • Loading branch information
fvictorio committed Feb 27, 2023
1 parent 20d8c54 commit cda98d9
Showing 1 changed file with 42 additions and 5 deletions.
47 changes: 42 additions & 5 deletions .github/workflows/TESTS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,60 @@ on:
branches: [ "master" ]

jobs:
build:

test_on_linux:
name: Run linter and tests on Linux
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [14, 16, 18]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm ci

- name: Run linter
run: npm run lint
- name: Run Tests
run: npm test

test_on_windows:
name: Run linter and tests on Windows
runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: npm ci

- name: Run linter
run: npm run lint
- name: Run Tests
run: npm test

test_on_macos:
name: Run linter and tests on MacOS
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: npm ci

- name: Run linter
run: npm run lint
- name: Run Tests
run: npm test

0 comments on commit cda98d9

Please sign in to comment.