-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
3 changed files
with
42 additions
and
48 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,28 +2,57 @@ name: Continuous Integration | |
on: | ||
pull_request: | ||
branches: [main] | ||
types: [labeled, opened, synchronize, reopened] | ||
jobs: | ||
changeset: | ||
build: | ||
name: Build, test & lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Use Node 18 | ||
uses: actions/setup-node@v3 | ||
- name: Use Node 20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
node-version: 20 | ||
|
||
- name: Install pnpm 8.6.12 | ||
- name: Install pnpm 9.8.0 | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 8.6.12 | ||
version: 9.8.0 | ||
|
||
- name: Install pnpm dependencies (with cache) | ||
uses: covbot/pnpm-install-with-cache@v1 | ||
|
||
- name: Build, test & lint | ||
run: pnpm turbo run lint build test --filter=...[${{ github.event.pull_request.base.sha }}...${{ github.sha }}] | ||
changeset: | ||
name: Check for changeset existence | ||
runs-on: ubuntu-latest | ||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'chore') }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Use Node 20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install pnpm 9.8.0 | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 9.8.0 | ||
|
||
- name: Install pnpm dependencies (with cache) | ||
uses: covbot/pnpm-install-with-cache@v1 | ||
|
||
- name: Danger | ||
run: pnpm danger ci | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -14,17 +14,17 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js 16.x | ||
uses: actions/setup-node@v2 | ||
- name: Setup Node.js 20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16.x | ||
node-version: 20 | ||
|
||
- name: Install pnpm 8.6.12 | ||
- name: Install pnpm 9.8.0 | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 8.6.12 | ||
version: 9.8.0 | ||
|
||
- name: Install pnpm dependencies (with cache) | ||
uses: covbot/pnpm-install-with-cache@v1 | ||
|