feat: adds unit tests #3
Workflow file for this run
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: Build, Test | |
on: [push, pull_request] | |
jobs: | |
install: | |
name: 'Install' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install node_modules | |
uses: OffchainLabs/actions/node-modules/install@main | |
build: | |
name: 'Build' | |
runs-on: ubuntu-latest | |
needs: install | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Restore node_modules | |
uses: OffchainLabs/actions/node-modules/restore@main | |
- name: Build | |
run: yarn build | |
- name: Cache build artifacts | |
uses: ./.github/actions/build-artifacts/cache | |
test-ui: | |
name: 'Test UI' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Restore node_modules | |
uses: OffchainLabs/actions/node-modules/restore@main | |
- name: Restore build artifacts | |
uses: ./.github/actions/build-artifacts/restore | |
- name: Start UI and Test | |
run: yarn test' |