0.5.8 #57
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
name: Unit Tests | |
on: | |
push: | |
branches: | |
- '**' | |
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 | |
cache: 'npm' | |
- 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 ci --loglevel=error | |
- name: Compile Typescript | |
run: npm run build | |
- 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 |