This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
Set Up Cloud Deployments #60
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: 'Affected Projects' | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout branch' | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: 'Use Node 18' | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: 'Set up Nx' | |
uses: nrwl/nx-set-shas@v3 | |
- name: 'Install dependencies' | |
run: 'npm ci' | |
- name: 'Build projects' | |
run: 'npx nx affected --target=build' | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout branch' | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: 'Use Node 18' | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: 'Set up Nx' | |
uses: nrwl/nx-set-shas@v3 | |
- name: 'Install dependencies' | |
run: 'npm ci' | |
- name: 'Lint projects' | |
run: 'npx nx affected --target=lint' | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout branch' | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: 'Use Node 18' | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: 'Set up Nx' | |
uses: nrwl/nx-set-shas@v3 | |
- name: 'Install dependencies' | |
run: 'npm ci' | |
- name: 'Test projects' | |
run: 'npx nx affected --target=test --ci --code-coverage' |