-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (42 loc) · 1.08 KB
/
review.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
name: Review
on:
pull_request_target:
types:
- opened
- synchronize
branches:
- master
jobs:
code-style-review:
runs-on: ubuntu-22.04
env:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
-
name: work around permission issue
run: |
git config --global --add safe.directory /__w/prometheus_diameter_collector/prometheus_diameter_collector
-
name: Check out repository
uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
-
name: install dependencies
run: |
sudo apt update
sudo apt install rebar3 emacs erlang-mode
-
name: format
run: rebar3 fmt
-
name: automated review
uses: googleapis/code-suggester@v4
with:
command: review
pull_number: ${{ github.event.pull_request.number }}
git_dir: '.'
-
name: check
run: git diff --quiet --exit-code