CI: move away from Node.js v12

Github is deprecating it in Actions, and it's already past EOL
This commit is contained in:
larabr 2022-10-12 13:27:39 +02:00 committed by larabr
parent 5957bab2e2
commit 9a935ed559
6 changed files with 16 additions and 20 deletions

View File

@ -11,17 +11,15 @@ jobs:
steps: steps:
# check out pull request branch # check out pull request branch
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
path: pr path: pr
# check out main branch (to compare performance) # check out main branch (to compare performance)
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
ref: main ref: main
path: main path: main
- uses: actions/setup-node@v1 - uses: actions/setup-node@v2
with:
node-version: '15'
- name: Run pull request time benchmark - name: Run pull request time benchmark
run: cd pr && npm install && npm run --silent benchmark-time > benchmarks.txt && cat benchmarks.txt run: cd pr && npm install && npm run --silent benchmark-time > benchmarks.txt && cat benchmarks.txt

View File

@ -13,14 +13,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: softprops/turnstyle@v1 - uses: softprops/turnstyle@v1
with: with:
poll-interval-seconds: 30 poll-interval-seconds: 30
abort-after-seconds: 900 abort-after-seconds: 900
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v1 - uses: actions/setup-node@v2
- run: npm ci - run: npm ci
- run: npm run build-test - run: npm run build-test
- run: npm run browserstack - run: npm run browserstack
@ -33,14 +33,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: softprops/turnstyle@v1 - uses: softprops/turnstyle@v1
with: with:
poll-interval-seconds: 30 poll-interval-seconds: 30
abort-after-seconds: 900 abort-after-seconds: 900
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v1 - uses: actions/setup-node@v2
- run: npm ci - run: npm ci
- run: npm run build-test --lightweight - run: npm run build-test --lightweight
- run: npm run browserstack - run: npm run browserstack

View File

@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-node@v1 - uses: actions/setup-node@v2
- run: npm ci - run: npm ci
- run: npm run docs - run: npm run docs

View File

@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-node@v1 - uses: actions/setup-node@v2
- run: npm ci - run: npm ci
- run: npm run lint - run: npm run lint

View File

@ -17,12 +17,12 @@ jobs:
strategy: strategy:
matrix: matrix:
node-version: [12.x, 14.x, 16.x, 18.x] node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-node@v1 - uses: actions/setup-node@v2
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
- run: npm ci - run: npm ci

View File

@ -13,9 +13,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-node@v1 - uses: actions/setup-node@v2
with:
node-version: '15'
- run: npm ci - run: npm ci
- run: npm run test-type-definitions - run: npm run test-type-definitions