Skip to content

chore: update packages and ci actions #94 #73

chore: update packages and ci actions #94

chore: update packages and ci actions #94 #73

Workflow file for this run

name: PR Commit
on:
pull_request:
branches: [main]
env:
WORKSPACE_ROOT: ./
jobs:
lint:
name: Lint
runs-on: ubuntu-22.04
steps:
- name: Checkout code into workspace directory
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up NodeJS (v18)
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install npm modules
run: npm i
- name: Lint code
run: npx nx affected:lint --base=origin/main --parallel
build-apps:
name: Build Apps
runs-on: ubuntu-22.04
steps:
- name: Checkout code into workspace directory
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up NodeJS (v18)
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install npm modules
run: npm i
- name: Build apps
run: npx nx affected:build --base=origin/main --parallel
check-format:
name: Check Format
runs-on: ubuntu-22.04
steps:
- name: Checkout code into workspace directory
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up NodeJS (v18)
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install npm modules
run: npm i
- name: Check code format
run: npx nx format:check --base=origin/main
test:
name: Unit Tests
runs-on: ubuntu-22.04
steps:
- name: Checkout code into workspace directory
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up NodeJS (v18)
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install npm modules
run: npm i
- name: Run unit tests
run: npx nx affected:test --base=origin/main --parallel
e2e:
name: E2E Tests
runs-on: ubuntu-22.04
steps:
- name: Checkout code into workspace directory
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up NodeJS (v18)
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install npm modules
run: npm i
- name: Build plugins
run: npm run build
- name: Run e2e tests
run: npx nx affected:e2e --base=origin/main