Skip to content

chore: restored tests #36

chore: restored tests

chore: restored tests #36

Workflow file for this run

name: Unit Tests
on: [push, pull_request]
jobs:
unit:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
name: Core Unit Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v3
# node setup
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
# remove workaround for 18.x once https://github.com/nodejs/node/issues/47563 is fixed
node-version: ${{ matrix.node-version == '18.x' && '18.15.0' || matrix.node-version }}
cache: yarn
# node install
- run: yarn --immutable
# node test
- run: yarn i18n && yarn test:ci
# Bundlewatch
- run: yarn build
- uses: jackyef/bundlewatch-gh-action@master
with:
bundlewatch-github-token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}