Skip to content

chore: fix action, don't need artifacts for tests #2

chore: fix action, don't need artifacts for tests

chore: fix action, don't need artifacts for tests #2

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, 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: Unit Tests
on:
push:
branches:
- '**'
tags-ignore:
- '*'
pull_request:
branches:
- '**'
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
timezone: [UTC, America/Los_Angeles, Europe/Berlin, Australia/Sydney]
steps:
- uses: actions/checkout@v4
- name: Node 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Write .npmrc file
run: |
echo //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }} > $HOME/.npmrc
echo @rundown-studio:registry=https://npm.pkg.github.com >> $HOME/.npmrc
- name: Install Dependencies
run: npm install
- name: Run Tests
run: npm run test:ci 2>&1 | tee $GITHUB_STEP_SUMMARY; exit ${PIPESTATUS[0]}
env:
TZ: ${{ matrix.timezone }}
NODE_OPTIONS: --experimental-vm-modules