Build command #233
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: test | |
on: [pull_request] # CI should only run on pull requests | |
jobs: | |
test-rapid-ui: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./packages/rapid-ui | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 19 | |
- name: Install dependencies with pnpm | |
run: | | |
npm install -g pnpm | |
pnpm install | |
- name: Run vitest tests | |
run: pnpm run test | |
test-rapid-react: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./packages/rapid-react | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 19 | |
- name: Install dependencies with pnpm | |
run: | | |
npm install -g pnpm | |
pnpm install | |
- name: Run vitest tests | |
run: pnpm run test |