-
Notifications
You must be signed in to change notification settings - Fork 1
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
82c6f1e
commit 8c9dea2
Showing
2 changed files
with
50 additions
and
8 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 |
---|---|---|
|
@@ -6,22 +6,44 @@ on: | |
branches: [main] | ||
|
||
jobs: | ||
build: | ||
install: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v2 | ||
- uses: actions/[email protected] | ||
with: | ||
node-version-file: .node-version | ||
cache: pnpm | ||
- run: pnpm install | ||
|
||
- name: Prepare pnpm | ||
uses: pnpm/action-setup@v2 | ||
|
||
- name: Prepare Node.js | ||
uses: actions/[email protected] | ||
check-beachball-changefile: | ||
if: github.base_ref == github.event.repository.default_branch | ||
needs: install | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v2 | ||
- uses: actions/[email protected] | ||
with: | ||
node-version-file: .node-version | ||
cache: pnpm | ||
- run: pnpm install | ||
|
||
- name: Install deps | ||
run: pnpm install | ||
- name: Check | ||
run: pnpm exec beachball check | ||
|
||
test: | ||
needs: install | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v2 | ||
- uses: actions/[email protected] | ||
with: | ||
node-version-file: .node-version | ||
cache: pnpm | ||
- run: pnpm install | ||
|
||
- name: ESLint | ||
run: pnpm run eslint | ||
|
@@ -32,6 +54,19 @@ jobs: | |
- name: Test | ||
run: pnpm run test | ||
|
||
build: | ||
if: ${{ always() && !failure() && !cancelled() }} | ||
needs: [test, check-beachball-changefile] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v2 | ||
- uses: actions/[email protected] | ||
with: | ||
node-version-file: .node-version | ||
cache: pnpm | ||
- run: pnpm install | ||
|
||
- name: Build | ||
run: pnpm run build | ||
|
||
|
7 changes: 7 additions & 0 deletions
7
change/@rightcapital-phpdoc-parser-0274fc9f-b9b4-4a08-adb7-cf1ba9b0504b.json
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,7 @@ | ||
{ | ||
"comment": "ci: add beachball changefile check", | ||
"type": "none", | ||
"packageName": "@rightcapital/phpdoc-parser", | ||
"email": "[email protected]", | ||
"dependentChangeType": "none" | ||
} |