Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 118 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
name: CI

on: push

jobs:
audit:
runs-on: ubuntu-latest
name: Audit
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Audit production dependencies
run: npm audit --omit=dev --omit=optional

format:
runs-on: ubuntu-latest
name: Format check
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Set base and head for Nx affected commands
uses: nrwl/nx-set-shas@v3
- name: Install dependencies
run: npm ci
- name: Check formatting of affected files
run: npx nx format:check

lint:
runs-on: ubuntu-latest
name: Linter
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Set base and head for Nx affected commands
uses: nrwl/nx-set-shas@v3
- name: Install dependencies
run: npm ci
- name: Lint affected projects
run: npx nx affected:lint --parallel=3 --max-warnings=0

test:
runs-on: ubuntu-latest
name: Unit tests
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Set base and head for Nx affected commands
uses: nrwl/nx-set-shas@v3
- name: Install dependencies
run: npm ci
- name: Test affected projects
run: npx nx affected:test --parallel=3

e2e:
runs-on: ubuntu-latest
name: E2E tests
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Set base and head for Nx affected commands
uses: nrwl/nx-set-shas@v3
- name: Install dependencies
run: npm ci
- name: Test affected projects
run: npx nx affected:e2e --parallel=3

build:
runs-on: ubuntu-latest
name: Build
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Set base and head for Nx affected commands
uses: nrwl/nx-set-shas@v3
- name: Install dependencies
run: npm ci
- name: Build affected projects
run: npx nx affected:build --parallel=3
17 changes: 16 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.