Skip to content

Commit 883be3d

Browse files
committed
feat: add support for nx 17
1 parent c7b0c5d commit 883be3d

File tree

19 files changed

+552
-396
lines changed

19 files changed

+552
-396
lines changed

.github/actions/migrate/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ runs:
1111
- name: Migrate
1212
shell: bash
1313
run: |
14-
npx nx migrate {nx-version}
14+
npx nx migrate ${{ inputs.nx-version }}
1515
npm install --force --ignore-scripts
1616
npx nx migrate --run-migrations --if-exists
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Backwards Compatibility Test
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '0 0 * * *' # daily at 00:00
6+
7+
jobs:
8+
integration-test:
9+
strategy:
10+
matrix:
11+
nx-version: [latest, '16.10.0']
12+
uses: ./.github/workflows/integration-test.yml
13+
with:
14+
nx-version: ${{matrix.nx-version}}

.github/workflows/basic-test.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v3
17-
with:
18-
fetch-depth: 0
1917
- uses: ./.github/actions/setup
2018

2119
- name: Lint
@@ -36,8 +34,6 @@ jobs:
3634
runs-on: ubuntu-latest
3735
steps:
3836
- uses: actions/checkout@v3
39-
with:
40-
fetch-depth: 0
4137
- uses: ./.github/actions/setup
4238

4339
- run: npx nx build
@@ -55,8 +51,6 @@ jobs:
5551
runs-on: ${{ matrix.os }}
5652
steps:
5753
- uses: actions/checkout@v3
58-
with:
59-
fetch-depth: 0
6054
- uses: ./.github/actions/setup
6155

6256
- run: npx nx test --code-coverage

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
pr-e2e-test:
1414
uses: ./.github/workflows/e2e-test.yml
1515

16-
pr-integration-test:
17-
uses: ./.github/workflows/integration-test.yml
16+
pr-plugin-integration-test:
17+
uses: ./.github/workflows/integration-test-plugins.yml
1818

1919
check-commit-lint:
2020
name: Check commit message follows guidelines

.github/workflows/e2e-test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111
steps:
1212
- uses: actions/checkout@v3
13-
with:
14-
fetch-depth: 0
1513
- uses: ./.github/actions/setup
1614

1715
- run: npx nx e2e ngx-deploy-npm-e2e
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Integration Test (Official Plugins)
2+
3+
on: workflow_call
4+
5+
jobs:
6+
plugins-integration-test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- uses: ./.github/actions/setup
11+
12+
- name: Plugins Integration Test
13+
run: npx nx integration ngx-deploy-npm-e2e
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
name: Integration Test
22

3-
on: workflow_call
3+
on:
4+
workflow_call:
5+
inputs:
6+
nx-version:
7+
type: string
8+
description: The Nx Workspace version to run the integration test
9+
required: true
410

511
jobs:
612
integration-test:
713
runs-on: ubuntu-latest
814
steps:
915
- uses: actions/checkout@v3
10-
with:
11-
fetch-depth: 0
1216
- uses: ./.github/actions/setup
1317

1418
- name: Integration Test
15-
run: npx nx integration ngx-deploy-npm-e2e
19+
run: npx nx create-nx-workspace -- ${{ inputs.nx-version }}

.github/workflows/publishment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
integration-test:
1717
if: ${{ !contains(github.event.head_commit.message, 'chore(release)') }}
18-
uses: ./.github/workflows/integration-test.yml
18+
uses: ./.github/workflows/integration-test-plugins.yml
1919

2020
angular-e2e-test:
2121
needs: test

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ testem.log
3939
Thumbs.db
4040

4141
reports/*
42+
.nx/cache
4243

4344
# Created by https://www.toptal.com/developers/gitignore/api/sonarqube
4445
# Edit at https://www.toptal.com/developers/gitignore?templates=sonarqube
@@ -56,4 +57,4 @@ reports/*
5657
# SonarLint working directories, configuration files (including credentials)
5758
.sonarlint/
5859

59-
# End of https://www.toptal.com/developers/gitignore/api/sonarqube
60+
# End of https://www.toptal.com/developers/gitignore/api/sonarqube

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
- [`--otp`](#--otp)
102102
- [`--dry-run`](#--dry-run)
103103
- [`--dist-folder-path`](#--dist-folder-path)
104+
- [Compatibility overview with Nx](#compatibility-overview-with-nx)
104105
- [📁 Configuration File](#configuration-file)
105106
- [🧐 Essential considerations](#essential-considerations)
106107
- [Version Generation](#version-generation)
@@ -305,6 +306,13 @@ Indicate a custom dist folder path.
305306
The path must relative to project's root.
306307
Especially useful when ngx-deploy-npm can not detect your library dist folder path automatically. [Write us an issue](https://github.com/bikecoders/ngx-deploy-npm/issues/new) if you think we should support the library you are trying to publish
307308
309+
## Compatibility overview with Nx
310+
311+
| Version | Nx Workspace Version |
312+
| ------- | ---------------------- |
313+
| v7.1.0 | `^16.0.0 \|\| ^17.0.0` |
314+
| v7.0.1 | `^16.0.0` |
315+
308316
## 📁 Configuration File <a name="configuration-file"></a>
309317
310318
To avoid all these command-line cmd options, you can write down your

0 commit comments

Comments
 (0)