Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Set Up Cloud Deployments #60

Set Up Cloud Deployments

Set Up Cloud Deployments #60

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'