-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4752d7b
commit be7eea2
Showing
2 changed files
with
110 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: {} | ||
|
||
permissions: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
name: main | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: {} | ||
|
||
permissions: | ||
actions: read | ||
contents: read | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.number || github.sha }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
install: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: 'yarn' | ||
cache-dependency-path: 'yarn.lock' | ||
- run: yarn --frozen-lockfile --non-interactive | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
needs: install | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: 'yarn' | ||
cache-dependency-path: 'yarn.lock' | ||
- run: yarn --frozen-lockfile --non-interactive | ||
- uses: nrwl/nx-set-shas@v4 | ||
- run: yarn nx -t lint | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
needs: install | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: 'yarn' | ||
cache-dependency-path: 'yarn.lock' | ||
- run: yarn --frozen-lockfile --non-interactive | ||
- uses: nrwl/nx-set-shas@v4 | ||
- run: yarn nx -t test | ||
|
||
e2e: | ||
runs-on: ubuntu-latest | ||
needs: install | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: 'yarn' | ||
cache-dependency-path: 'yarn.lock' | ||
- run: yarn --frozen-lockfile --non-interactive | ||
- uses: nrwl/nx-set-shas@v4 | ||
- run: yarn nx -t e2e --exclude=docs-app | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
needs: install | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: 'yarn' | ||
cache-dependency-path: 'yarn.lock' | ||
- run: yarn --frozen-lockfile --non-interactive | ||
- uses: nrwl/nx-set-shas@v4 | ||
- run: yarn nx -t build | ||
|
||
schematics-core-check: | ||
runs-on: ubuntu-latest | ||
needs: install | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: 'yarn' | ||
cache-dependency-path: 'yarn.lock' | ||
- run: yarn --frozen-lockfile --non-interactive | ||
- uses: nrwl/nx-set-shas@v4 | ||
- run: yarn copy:schematics | ||
- run: yarn schematics:check |