Skip to content

Commit

Permalink
Update CI component versions (#1200)
Browse files Browse the repository at this point in the history
* Update CI component versions

* Fix ci.yml yaml syntax
  • Loading branch information
vmoroz authored Sep 2, 2022
1 parent fb27e72 commit 5a5a213
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ jobs:
timeout-minutes: 30
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x, 16.x]
node-version: [14.x, 16.x, 18.x]
os:
- windows-2019
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.1.5
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Check Node.js installation
Expand Down
20 changes: 9 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,16 @@ jobs:
timeout-minutes: 30
strategy:
matrix:
node-version:
- node/12
- node/14
- node/16
node-version: [14.x, 16.x, 18.x]
compiler:
- gcc
- clang
os:
- ubuntu-18.04
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install system dependencies
run: |
if [ "${{ matrix.compiler }}" = "gcc" -a "${{ matrix.os }}" = ubuntu-* ]; then
Expand All @@ -28,14 +25,15 @@ jobs:
sudo apt-get install g++-6.5
fi
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Check Node.js installation
run: |
git clone --branch v1.4.2 --depth 1 https://github.com/jasongin/nvs ~/.nvs
. ~/.nvs/nvs.sh
nvs --version
nvs add ${{ matrix.node-version }}
nvs use ${{ matrix.node-version }}
node --version
npm --version
- name: Install dependencies
run: |
npm install
- name: npm test
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ jobs:
if: github.repository == 'nodejs/node-addon-api'
strategy:
matrix:
node-version: [14.x]
node-version: [16.x]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git branch -a
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made.'
Expand Down

0 comments on commit 5a5a213

Please sign in to comment.