Skip to content

Attempt to merge two fixes and three new features (custom async token storage, userReady flag, loginWithCustomHandler) #276

Attempt to merge two fixes and three new features (custom async token storage, userReady flag, loginWithCustomHandler)

Attempt to merge two fixes and three new features (custom async token storage, userReady flag, loginWithCustomHandler) #276

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Test Suite
on:
push:
branches: [master]
pull_request: # run on all pull requests
jobs:
lintjs:
name: Javascript standard lint
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v5
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 22
- name: cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node22-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node22-
- run: npm ci --legacy-peer-deps
- run: npm run lint
unittest:
name: unit tests
runs-on: ubuntu-latest
needs: [lintjs]
strategy:
matrix:
node: [22, 24]
steps:
- name: Checkout ${{ matrix.node }}
uses: actions/checkout@v5
- name: Setup node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Cache dependencies ${{ matrix.node }}
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node${{ matrix.node }}-
- run: npm ci --legacy-peer-deps
- run: npm run test:coverage
build:
name: Build
runs-on: ubuntu-latest
needs: [unittest]
strategy:
matrix:
node: [22, 24]
steps:
- uses: actions/checkout@v5
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm run build --if-present