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

Set Up Staging Environment #43

Set Up Staging Environment

Set Up Staging Environment #43

name: Affected Projects
on:
pull_request:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- uses: nrwl/nx-set-shas@v3
- run: npm ci
- run: npx nx affected --target=build
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- uses: nrwl/nx-set-shas@v3
- run: npm ci
- run: npx nx affected --target=lint
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- uses: nrwl/nx-set-shas@v3
- run: npm ci
- run: npx nx affected --target=test --ci --code-coverage