adding tests #16
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: run-tests | |
on: | |
pull_request: | |
jobs: | |
run-tests: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
fetch-depth: 0 | |
- name: Run test manually | |
run: | | |
echo $(pwd) | |
echo $(ls) | |
cd packages/faro-rollup/src/test | |
yarn install | |
cd ../.. | |
yarn install | |
yarn test | |
cd ../faro-webpack/src/test | |
yarn install | |
cd ../.. | |
yarn install | |
yarn test | |
- name: Install dependencies | |
uses: borales/actions-yarn@v5 | |
with: | |
cmd: install --frozen-lockfile | |
- name: Setup NPM | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
registry-url: "https://registry.npmjs.org" | |
- name: Run tests | |
uses: borales/actions-yarn@v5 | |
with: | |
cmd: test | |
- name: Build production bundle | |
uses: borales/actions-yarn@v5 | |
with: | |
cmd: build |