Docs: Update passport #5293
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: Apps | |
on: | |
pull_request: | |
branches: | |
- main | |
defaults: | |
run: | |
working-directory: ./apps | |
jobs: | |
changes: | |
runs-on: ubuntu-latest | |
outputs: | |
apps: ${{ steps.changes.outputs.apps }} | |
steps: | |
# find out what deploy stack to use | |
- uses: actions/checkout@v3 | |
- uses: dorny/paths-filter@v2 | |
id: changes | |
with: | |
filters: | | |
apps: | |
- 'apps/**' | |
- '.github/workflows/pr-apps.yaml' | |
build-test-apps: | |
needs: changes | |
if: needs.changes.outputs.apps == 'true' | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Restore node modules | |
id: cache-node-modules-restore | |
uses: actions/cache/restore@v3 | |
with: | |
path: | | |
node_modules | |
.yarn | |
key: ${{ runner.os }}-node_modules-${{ hashFiles('yarn.lock') }} | |
- name: Install Dependencies | |
run: yarn install --immutable | |
- name: Save node modules | |
if: steps.cache-node-modules-restore.outputs.cache-hit != 'true' | |
id: cache-node_modules-save | |
uses: actions/cache/save@v3 | |
with: | |
path: | | |
node_modules | |
.yarn | |
key: ${{ steps.cache-node-modules-restore.outputs.cache-primary-key }} | |
- name: Build | |
run: yarn build | |
- name: Test | |
run: yarn test |