Skip to content

✨ Update README with project description, application detail… #61

✨ Update README with project description, application detail…

✨ Update README with project description, application detail… #61

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Needed for Nx affected commands
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 9.7.0
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
# Determine what projects are affected by changes
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v3
# Run lint on affected projects
- name: Lint affected projects
run: pnpm exec nx affected -t lint --parallel=3
# Run tests on affected projects
- name: Test affected projects
run: pnpm exec nx affected -t test --parallel=3
# Build affected projects
- name: Build affected projects
run: pnpm exec nx affected -t build --parallel=3