-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (54 loc) · 1.5 KB
/
pr.yaml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Pull request
on:
pull_request:
types:
- edited
- opened
- reopened
- ready_for_review
- synchronize
run-name: Pull request ${{ github.event.number }}
env:
MIX_ENV: test
jobs:
greet:
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
steps:
- name: Add PR Comment
uses: actions/first-interaction@v1.3.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
pr-message: |
Hello @${{ github.actor }}! Thanks for contributing to the plugin!
Your PR basically need 3 things to be merged:
- Your PR title need to follow the [conventional commits spec](https://www.conventionalcommits.org/en/v1.0.0/)
- It must transpile without error and be tested
- An approbation
check-cc:
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
steps:
- name: Check PR title
uses: amannn/action-semantic-pull-request@v5.5.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
otp-version: 26.0.0
elixir-version: 1.15.0
- name: Elixir Setup
run: |
mix deps.clean --all
mix clean
mix deps.get
mix compile
- name: Elixir Test
run: |
mix format --check-formatted
mix tc