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 7fcbd04
Showing 1 changed file with 51 additions and 3 deletions.
54 changes: 51 additions & 3 deletions .github/workflows/TESTS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,59 @@ 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
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

strategy:
matrix:
node-version: 18

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
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_macos:
name: Run linter and tests on MacOS
runs-on: macos-latest

strategy:
matrix:
node-version: 18

steps:
- uses: actions/checkout@v3
Expand All @@ -28,5 +74,7 @@ jobs:
- name: Install dependencies
run: npm ci

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

0 comments on commit 7fcbd04

Please sign in to comment.