Skip to content

Housekeeping (update node, update deps, add new event) #54

Housekeeping (update node, update deps, add new event)

Housekeeping (update node, update deps, add new event) #54

name: Build/Test-Versions
on: [ push, pull_request ]
jobs:
build:
name: build/test on node versions
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.x, 20.x, 21.x ]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # 2.7.0
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
objects.githubusercontent.com:443
nodejs.org:443
registry.npmjs.org:443
registry.yarnpkg.com:443
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # 4.1.1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # 4.0.1
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --frozen-lockfile
- run: yarn type-check
- run: yarn lint
- run: yarn lint-tests
- run: yarn test
- run: yarn build