chore(deps): update actions/checkout action to v4.1.6 #1092
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will run the examples provided in the examples folder | |
name: examples | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
permissions: | |
contents: read | |
jobs: | |
nodejs: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: | |
- 10 | |
- 12 | |
- 14 | |
- 16 | |
- 18 | |
- 20 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm install | |
working-directory: examples/nodejs | |
- run: npm run test | |
working-directory: examples/nodejs | |
typescript-node-es6: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ts-version: | |
- 3 | |
- 4 | |
- "5.0" # requires node version 12.20 | |
# starting with typescript 5.1 the minimum required node version is 14.17 | |
# so current versions have a separate job without node v12 | |
node-version: | |
- 12 | |
- 14 | |
- 16 | |
- 18 | |
- 20 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: ./pretest.sh ${{ matrix.ts-version }} | |
working-directory: examples/typescript-node-es6 | |
- run: node --experimental-modules dist/index.js | |
if: ${{ matrix.node-version == 12 }} | |
working-directory: examples/typescript-node-es6 | |
- run: node dist/index.js | |
if: ${{ matrix.node-version > 12 }} | |
working-directory: examples/typescript-node-es6 | |
typescript51-node-es6: | |
# starting with typescript 5.1 the minimum required node version is 14.17 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ts-version: | |
- 5 | |
node-version: | |
- 14 | |
- 16 | |
- 18 | |
- 20 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: ./pretest.sh ${{ matrix.ts-version }} | |
working-directory: examples/typescript-node-es6 | |
- run: node dist/index.js | |
working-directory: examples/typescript-node-es6 |