Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add beachball changefile check #120

Merged
merged 1 commit into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 43 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
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"
}
Loading