mirror of
https://github.com/toddbluhm/env-cmd.git
synced 2025-12-08 18:23:33 +00:00
chore(ci): remove node 8.x version, add node versions 18, 20, 22
This commit is contained in:
parent
d91335a790
commit
ab91b2fc52
25
.github/workflows/linux-tests.yml
vendored
25
.github/workflows/linux-tests.yml
vendored
@ -3,17 +3,16 @@ name: linux tests
|
|||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
test:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [8.x, 10.x, 12.x]
|
node-version: [10.x, 12.x, 18.x, 20.x, 22.x]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout project
|
- name: Checkout Project
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@ -23,7 +22,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
@ -33,20 +32,24 @@ jobs:
|
|||||||
- name: Lint Files
|
- name: Lint Files
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
|
|
||||||
- name: Run Tests and Converage
|
- name: Run Tests and Coverage
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
run: npm run test-cover
|
run: npm run test-cover
|
||||||
|
|
||||||
- name: Coveralls Parallel
|
- name: Send Coverage to Coveralls
|
||||||
uses: coverallsapp/github-action@master
|
uses: coverallsapp/github-action@v2
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
parallel: true
|
parallel: true
|
||||||
path-to-lcov: ./coverage/lcov.info
|
path-to-lcov: ./coverage/lcov.info
|
||||||
|
|
||||||
- name: Coveralls Finished
|
finish:
|
||||||
uses: coverallsapp/github-action@master
|
needs: test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Close Coveralls Parallel Build
|
||||||
|
uses: coverallsapp/github-action@v2
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
parallel-finished: true
|
parallel-finished: true
|
||||||
|
|||||||
24
.github/workflows/windows-tests.yml
vendored
24
.github/workflows/windows-tests.yml
vendored
@ -3,22 +3,22 @@ name: windows tests
|
|||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
test:
|
||||||
|
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [8.x, 10.x, 12.x]
|
node-version: [10.x, 12.x, 18.x, 20.x, 22.x]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout project
|
- name: Checkout Project
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
@ -28,20 +28,24 @@ jobs:
|
|||||||
- name: Lint Files
|
- name: Lint Files
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
|
|
||||||
- name: Run Tests and Converage
|
- name: Run Tests and Coverage
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
run: npm run test-cover
|
run: npm run test-cover
|
||||||
|
|
||||||
- name: Coveralls Parallel
|
- name: Send Coverage to Coveralls
|
||||||
uses: coverallsapp/github-action@master
|
uses: coverallsapp/github-action@v2
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
parallel: true
|
parallel: true
|
||||||
path-to-lcov: ./coverage/lcov.info
|
path-to-lcov: ./coverage/lcov.info
|
||||||
|
|
||||||
- name: Coveralls Finished
|
finish:
|
||||||
uses: coverallsapp/github-action@master
|
needs: test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Close Coveralls Parallel Build
|
||||||
|
uses: coverallsapp/github-action@v2
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
parallel-finished: true
|
parallel-finished: true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user