-
-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update CI run condition * Update to Nx v17 * Attempt to fix scripts * Fully utilise Nx for PR workflow
- Loading branch information
1 parent
5615221
commit 63d6aea
Showing
6 changed files
with
92 additions
and
310 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
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 |
---|---|---|
|
@@ -12,9 +12,8 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
env: | ||
NX_DAEMON: false | ||
NX_VERBOSE_LOGGING: true | ||
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | ||
NX_VERBOSE_LOGGING: true | ||
|
||
jobs: | ||
test: | ||
|
@@ -24,36 +23,6 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref }} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm --prefer-offline install --no-frozen-lockfile | ||
- name: Run Tests | ||
uses: nick-fields/[email protected] | ||
with: | ||
command: pnpm test:lib --base=${{ github.event.pull_request.base.sha }} | ||
timeout_minutes: 5 | ||
max_attempts: 3 | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
lint: | ||
name: 'Lint' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref }} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
|
@@ -64,74 +33,12 @@ jobs: | |
node-version-file: .nvmrc | ||
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm --prefer-offline install --no-frozen-lockfile | ||
- run: pnpm run test:eslint --base=${{ github.event.pull_request.base.sha }} | ||
typecheck: | ||
name: 'Typecheck' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref }} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm --prefer-offline install --no-frozen-lockfile | ||
- run: pnpm run test:types --base=${{ github.event.pull_request.base.sha }} | ||
format: | ||
name: 'Format' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref }} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm --prefer-offline install --no-frozen-lockfile | ||
- run: pnpm run test:format --base=${{ github.event.pull_request.base.sha }} | ||
test-build: | ||
name: 'Test Build' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref }} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm --prefer-offline install --no-frozen-lockfile | ||
run: pnpm install --frozen-lockfile --prefer-offline | ||
- name: Get appropriate base and head commits for `nx affected` commands | ||
uses: nrwl/nx-set-shas@v3 | ||
with: | ||
main-branch-name: 'main' | ||
- run: pnpm run test:build | ||
env: | ||
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} | ||
- name: Run Checks | ||
run: pnpm run test:pr | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 |
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 |
---|---|---|
|
@@ -45,3 +45,6 @@ dist | |
.idea | ||
|
||
nx-cloud.env | ||
|
||
.nx/cache | ||
.tsup |
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
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
Oops, something went wrong.