Skip to content

Commit

Permalink
split examples and real CI runs
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton committed Sep 9, 2024
1 parent fa5f260 commit 11b8104
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 8 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/ci-examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

env:
NX_NON_NATIVE_HASHER: true

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

e2e-original:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
name: E2E tests
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- name: Set base and head for Nx affected commands
uses: nrwl/nx-set-shas@v4
- name: Install dependencies
run: npm i
- name: pretarget E2E test project
run: npx nx run cli-e2e-pretarget:pretarget-e2e
- name: graph E2E test project
run: npx nx run cli-e2e-graph:graph-e2e
- name: env E2E test project
run: npx nx run cli-e2e-env:env-e2e
- name: Original E2E test project
run: npx nx run cli-e2e-original:original-e2e
8 changes: 0 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,3 @@ jobs:
run: npm i
- name: E2E test all projects with buildable environmnets
run: npx nx run-many -t e2e --parallel 10
- name: pretarget E2E test project
run: npx nx run cli-e2e-pretarget:pretarget-e2e
- name: graph E2E test project
run: npx nx run cli-e2e-graph:graph-e2e
- name: env E2E test project
run: npx nx run cli-e2e-env:env-e2e
- name: Original E2E test project
run: npx nx run cli-e2e-original:original-e2e

0 comments on commit 11b8104

Please sign in to comment.