add runtime management mode #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will do a clean install of dependencies, run the linter, | |
# and then run jest tests | |
name: Test | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x] | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
registry-url: 'https://npm.pkg.github.com' | |
scope: '@tailwind' | |
cache: 'npm' | |
cache-dependency-path: 'package-lock.json' | |
- name: Install | |
run: npm ci | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.PACKAGES_READ_TOKEN }} | |
- name: Run Jest Tests | |
run: npm run test:ci | |
env: | |
AWS_DEFAULT_REGION: 'us-east-1' | |
- name: Build | |
run: npm run build |