-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (38 loc) · 1.27 KB
/
ui-library-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Action to label pull requests based on the pre commit config that can be found here:
# 🪛 https://github.com/hivemq/ui-library/blob/main/.pre-commit-config.yaml
# ---
# This action is a prerequisite to allow us to use release-drafter
# https://github.com/release-drafter/release-drafter
name: 🛠️ Pull Request Management
on:
pull_request:
types: [assigned, opened, reopened, edited, synchronize]
permissions:
contents: read
jobs:
run_linter:
name: 🧪 Lint files
runs-on: ubuntu-latest
steps:
- name: 👓 Checkout repository
uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
GH_NPM_TOKEN: ${{ secrets.GH_NPM_TOKEN }}
- name: 📝 Execute linter
run: pnpm lint:check:all
fail_if_pull_request_is_draft:
if: ${{ github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- name: ❌ Fails in order to indicate that pull request needs to be marked as ready to review and tests workflow needs to pass.
run: exit 1
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
GH_NPM_TOKEN: ${{ secrets.GH_NPM_TOKEN }}
- run: pnpm build