Skip to content

Feature/has attributes #3

Feature/has attributes

Feature/has attributes #3

Workflow file for this run

# 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:
- 14
- 16
- 18
- 20
- 22
steps:
- name: Harden Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
egress-policy: audit
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
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
- 5 # typescript >=5.1 requires node version >=14.17
node-version:
- 14
- 16
- 18
- 20
- 22
steps:
- name: Harden Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
egress-policy: audit
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
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