test #1
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: UI Test | |
on: | |
pull_request: | |
branches: | |
- main | |
- 'develop' | |
paths: | |
- 'ui/**' | |
workflow_dispatch: | |
jobs: | |
ui-test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
sparse-checkout: | | |
.github | |
ui | |
fetch-depth: 2 | |
- name: Tag baseRef | |
run: | | |
git tag baseRef HEAD^1 | |
- name: Read .nvmrc | |
working-directory: ./ui | |
run: | | |
echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT | |
id: nvm | |
- name: Use Node.js ${{ steps.nvm.outputs.NODE_VERSION }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ steps.nvm.outputs.NODE_VERSION }} | |
- name: Install dependencies | |
working-directory: ./ui | |
run: | | |
yarn install --immutable | |
- name: Run UI unit tests on affected packages | |
working-directory: ./ui | |
run: | | |
yarn test:affected |