Skip to content

Commit 545a4c4

Browse files
committed
fix: refactor PR linter action
1 parent e2b3d7d commit 545a4c4

File tree

4 files changed

+15
-57
lines changed

4 files changed

+15
-57
lines changed

.github/actions/lint-pr/action.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/actions/test/action.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Test
22

33
description: Lint, Test and upload to Codecov
44

5+
inputs:
6+
github_token:
7+
description: GitHub token
8+
required: true
9+
510
runs:
611
using: composite
712

@@ -36,3 +41,11 @@ runs:
3641

3742
# - name: Codecov upload
3843
# uses: codecov/codecov-action@v2
44+
45+
- name: Lint PR
46+
if: 'github.event.pull_request != null'
47+
shell: bash
48+
run: pnpm danger ci --use-github-checks --failOnErrors
49+
working-directory: packages/bots
50+
env:
51+
DANGER_GITHUB_API_TOKEN: ${{ inputs.github_token }}

.github/workflows/lint-pr.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ jobs:
2626

2727
- name: Test
2828
uses: ./.github/actions/test
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)