Skip to content

Use @adobe/auth-token beta. Fix tests. Switch to jest. #43

Use @adobe/auth-token beta. Fix tests. Switch to jest.

Use @adobe/auth-token beta. Fix tests. Switch to jest. #43

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: ci
on:
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
unit-test:
name: "Unit Test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/iron'
registry-url: https://registry.npmjs.org/
- uses: actions/cache@v4
id: npm-cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
if: steps.npm-cache.outputs.cache-hit != 'true'
run: npm ci
- name: Run Unit Test
run: npm test