27 lines
615 B
YAML
27 lines
615 B
YAML
name: CI
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
types: [ opened, synchronize, reopened ]
|
|
paths:
|
|
- .github/workflows/**
|
|
- apps/**
|
|
- libs/**
|
|
|
|
jobs:
|
|
main:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: nrwl/nx-set-shas@v3
|
|
- name: Install deps
|
|
run: npm ci --legacy-peer-deps
|
|
- name: Lint affected
|
|
run: npx nx affected -t lint
|
|
- name: Test affected
|
|
run: npx nx affected -t test --configuration=ci
|
|
- name: Build affected
|
|
run: npx nx affected -t build
|