Skip to content

Commit

Permalink
build: updating workflow for new node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
manchuck committed May 16, 2023
1 parent e39961c commit ffbf97b
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,40 @@ on:
pull_request:
jobs:
test:
continue-on-error: ${{ matrix.experimental }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node: [14.x, 16.x, 18.x]
runs-on: ${{ matrix.os }}
node: [16.x, 18.x, 20.x]
experimental: [false]
include:
- os: ubuntu-latest
node: 14
experimental: true
npm_version: "@8.3.1"
- os: windows-latest
node: 14
experimental: true
npm_version: "@8.3.1"
- os: macos-latest
node: 14
experimental: true
npm_version: "@8.3.1"
steps:
- uses: actions/checkout@v3

- name: Set up Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- name: Install dependencies
run: npm install -g typescript npm@8.3.1 && npm install
- name: Install typescript
run: npm install -g typescript npm${{ matrix.npm_version }} && npm install

- name: Lint, Compile, Test
run: npm run compile && npm run test -- --coverage
run: npm run compile && npm run test -- --coverage --verbose

- name: Run codecov
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit ffbf97b

Please sign in to comment.