should have better tests for DocUrl but this prevents errors for non-… #497
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review, review_requested] | |
branches: | |
- main | |
jobs: | |
run-tests: | |
if: github.event.pull_request.draft == false | |
name: Run Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
registry-url: 'https://registry.npmjs.org' | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.ref }} | |
- name: Install and Build | |
run: | | |
yarn install --no-lockfile | |
yarn build | |
- name: Run Tests | |
run: yarn test |