Skip to content

Commit

Permalink
chore(ci): remove node 8.x version, add node versions 18, 20, 22
Browse files Browse the repository at this point in the history
  • Loading branch information
toddbluhm committed Nov 23, 2024
1 parent d91335a commit 156ff48
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 27 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/linux-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@ name: linux tests
on: [push, pull_request]

jobs:
build:

test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8.x, 10.x, 12.x]
node-version: [10.x, 12.x, 18.x, 20.x, 22.x]

steps:
- name: Checkout project
uses: actions/checkout@v2
- name: Checkout Project
uses: actions/checkout@3
with:
fetch-depth: 0

Expand All @@ -23,7 +22,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@3
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -33,20 +32,25 @@ jobs:
- name: Lint Files
run: npm run lint

- name: Run Tests and Converage
- name: Run Tests and Coverage
env:
CI: true
run: npm run test-cover

- name: Coveralls Parallel
uses: coverallsapp/github-action@master
- name: Send Coverage to Coveralls
uses: coverallsapp/github-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
path-to-lcov: ./coverage/lcov.info

- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
finish:
needs: test
if: $
runs-on: ubuntu-latest
steps:
- name: Close Coveralls Parallel Build
uses: coverallsapp/github-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
31 changes: 18 additions & 13 deletions .github/workflows/windows-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ name: windows tests
on: [push, pull_request]

jobs:
build:
test:

runs-on: windows-latest

strategy:
matrix:
node-version: [8.x, 10.x, 12.x]
node-version: [10.x, 12.x, 18.x, 20.x, 22.x]

steps:
- name: Checkout project
uses: actions/checkout@v2
- name: Checkout Project
uses: actions/checkout@3
with:
fetch-depth: 0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@3
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -28,20 +28,25 @@ jobs:
- name: Lint Files
run: npm run lint

- name: Run Tests and Converage
- name: Run Tests and Coverage
env:
CI: true
run: npm run test-cover

- name: Coveralls Parallel
uses: coverallsapp/github-action@master
- name: Send Coverage to Coveralls
uses: coverallsapp/github-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
path-to-lcov: ./coverage/lcov.info

- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
finish:
needs: test
if: $
runs-on: ubuntu-latest
steps:
- name: Close Coveralls Parallel Build
uses: coverallsapp/github-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true

0 comments on commit 156ff48

Please sign in to comment.