refactor(movies): migrate to use application builder SSR features #412
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 - build,test affected projects on Pr+Merge | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- | |
env: | |
NX_NON_NATIVE_HASHER: true | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
# needed for all cases | |
- if: github.event_name == 'push' && github.ref_name == 'main' | |
uses: actions/checkout@v4 | |
# needed for nx affected command | |
- if: github.event_name == 'pull_request' | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
# needed for nx affected command | |
- if: github.event_name == 'pull_request' | |
run: git fetch --no-tags --depth=1 origin $BASE_BRANCH | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: 'package.json' | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
# TODO: have different dist locations to run in parallel | |
- name: Run Nx Affected lint,test | |
run: npx nx affected --targets=lint,test | |
- name: Run Nx Affected build | |
run: npx nx affected --targets=build --exclude docs | |
- name: Run build docs | |
run: npx nx build docs | |
- name: Run Nx Affected prerende | |
run: npx nx affected --targets=prerende |