Merge pull request #206 from allenai/EricM/update-pdf-components-library #743
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: ci | |
on: push | |
jobs: | |
ui: | |
# The default is 360 (6 hours). | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '12.22.6' | |
# Dependencies for library and demo app need to be installed before we can build anything | |
- name: Install demo dependencies | |
working-directory: ui/demo | |
run: yarn install | |
- name: Create link to demo's react | |
working-directory: ui/demo | |
run: yarn link:react | |
- name: Install library dependencies | |
working-directory: ui/library | |
run: yarn install | |
- name: Point library to demo react link | |
working-directory: ui/library | |
run: yarn link:react | |
- name: Build library | |
working-directory: ui/library | |
run: yarn build | |
- name: Create link to freshly built library | |
working-directory: ui/library | |
run: yarn link:lib | |
- name: Point demo app to library link | |
working-directory: ui/demo | |
run: yarn link:lib | |
- name: Build demo | |
working-directory: ui/demo | |
run: yarn build | |
- name: Test library | |
working-directory: ui/library | |
run: yarn test | |
- name: Test demo app | |
working-directory: ui/demo | |
run: yarn test | |
- name: Lint library | |
working-directory: ui/library | |
run: yarn lint | |
- name: Lint demo | |
working-directory: ui/demo | |
run: yarn lint |