Skip to content

Commit

Permalink
chore: disable nx (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
LingyuCoder authored Sep 29, 2024
1 parent 3f6bb32 commit 3a93cd8
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
os: ubuntu-latest
- suite: _selftest
os: ubuntu-latest
- suite: nx
os: ubuntu-latest
# - suite: nx
# os: ubuntu-latest
- suite: rspress
os: ubuntu-latest
- suite: rsbuild
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/ecosystem-ci-from-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:
options:
- "-"
- modernjs
- nx
# - nx
- rspress
- rslib
- rsbuild
Expand Down Expand Up @@ -92,8 +92,8 @@ jobs:
os: ubuntu-latest
- suite: _selftest
os: ubuntu-latest
- suite: nx
os: ubuntu-latest
# - suite: nx
# os: ubuntu-latest
- suite: rspress
os: ubuntu-latest
- suite: rslib
Expand All @@ -109,6 +109,7 @@ jobs:
name: execute-all (${{ matrix.suite }})
steps:
- uses: actions/checkout@v4
- uses: moonrepo/setup-rust@v1
- uses: ./.github/actions/build-rspack
with:
repository: ${{ inputs.repo }}
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/ecosystem-ci-from-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ on:
options:
- "-"
- modernjs
- nx
# - nx
- rspress
- rsbuild
- rslib
Expand Down Expand Up @@ -118,8 +118,8 @@ jobs:
include:
- suite: modernjs
os: ubuntu-latest
- suite: nx
os: ubuntu-latest
# - suite: nx
# os: ubuntu-latest
- suite: rspress
os: ubuntu-latest
- suite: rslib
Expand All @@ -135,6 +135,7 @@ jobs:
name: execute-all (${{ matrix.suite }})
steps:
- uses: actions/checkout@v4
- uses: moonrepo/setup-rust@v1
- uses: ./.github/actions/build-rspack
with:
repository: ${{ inputs.repo }}
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/ecosystem-ci-selected.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ on:
options:
- "-"
- modernjs
- nx
# - nx
- rspress
- rsbuild
- rslib
Expand Down Expand Up @@ -81,6 +81,7 @@ jobs:
if: "inputs.suite != '-'"
steps:
- uses: actions/checkout@v4
- uses: moonrepo/setup-rust@v1
- uses: ./.github/actions/build-rspack
with:
ref: ${{ inputs.suiteRef }}
Expand Down Expand Up @@ -114,8 +115,8 @@ jobs:
include:
- suite: modernjs
os: ubuntu-latest
- suite: nx
os: ubuntu-latest
# - suite: nx
# os: ubuntu-latest
- suite: rspress
os: ubuntu-latest
- suite: rslib
Expand Down
16 changes: 10 additions & 6 deletions tests/nx.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
import { runInRepo } from '../utils'
import { runInRepo, $ } from '../utils'
import { RunOptions } from '../types'

export async function test(options: RunOptions) {
await runInRepo({
...options,
repo: 'nrwl/nx-labs',
branch: 'main',
build: ['yarn nx build --skip-nx-cache rspack'],
repo: 'nrwl/nx',
branch: 'master',
beforeTest: async () => {
await $`cargo build`
await $`pnpm nx reset`
await $`pnpm nx build rspack --skip-nx-cache --verbose`
},
test: [
'yarn nx test --skip-nx-cache rspack',
'yarn nx e2e --skip-nx-cache rspack-e2e',
'pnpm nx test rspack --skip-nx-cache --verbose',
// 'pnpm nx run-many -t e2e-local -p e2e-rspack --skip-nx-cache',
],
})
}

0 comments on commit 3a93cd8

Please sign in to comment.