Skip to content

0.4.1

0.4.1 #984

Workflow file for this run

name: Node.js CI
on:
push:
jobs:
build:
runs-on: ubuntu-latest
# These permissions are needed to interact with GitHub's OIDC Token endpoint.
permissions:
id-token: write
contents: read
steps:
# Fail fast
- name: Test AWS OIDC authentication
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: eu-west-2
role-to-assume: arn:aws:iam::970661486861:role/github-Borewit-tokenizer-s3
role-session-name: GithubActionS3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
- run: corepack enable yarn
- name: Install development dependencies
run: yarn install
- name: Build & Code analysis
run: yarn run lint
- name: Build
run: yarn run build
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: build
path: |
lib/**/*.js
lib/**/*.js.map
lib/**/*.d.ts
test/**/*.js
test/**/*.js.map
test:
runs-on: ubuntu-latest
needs: build
env:
YARN_IGNORE_NODE: 1
strategy:
matrix:
node-version: [16.x, 18.x, 20.x, 22.x]
# These permissions are needed to interact with GitHub's OIDC Token endpoint.
permissions:
id-token: write
contents: read
steps:
- name: Configure AWS OIDC Session
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: eu-west-2
role-to-assume: arn:aws:iam::970661486861:role/github-Borewit-tokenizer-s3
role-session-name: GithubActionS3
- name: 'Checkout the repository'
uses: actions/checkout@v4
- name: Test with Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: corepack enable yarn
- name: Install dependencies
run: yarn install
- name: Download build
uses: actions/download-artifact@v4
with:
name: build
- name: Test with Node.js ${{ matrix.node-version }}
run: yarn run test