feat: adding a source map upload CLI package #125
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: Setup NPM | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
registry-url: "https://registry.npmjs.org" | |
- name: Install dependencies | |
uses: borales/actions-yarn@v5 | |
with: | |
cmd: install --frozen-lockfile | |
- name: Run tests | |
run: | | |
cd packages/faro-rollup/src/test | |
yarn install | |
cd ../.. | |
yarn install | |
cd ../faro-webpack/src/test | |
yarn install | |
yarn build | |
cd ../../.. | |
yarn install && yarn build | |
yarn test | |
- name: Build production bundle | |
uses: borales/actions-yarn@v5 | |
with: | |
cmd: build |