-
Notifications
You must be signed in to change notification settings - Fork 3.5k
41 lines (41 loc) · 1.18 KB
/
check-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
---
name: Check PR
on: [pull_request]
jobs:
checks:
runs-on: ubuntu-latest
env:
BUILD_IN_CONTAINER: false
container:
image: grafana/loki-build-image:0.33.0
steps:
- uses: actions/checkout@v4
- run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: golangci-lint
uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5
with:
version: v1.55.1
only-new-issues: true
- run: make lint
- run: make check-doc
- run: make check-mod
- run: make validate-example-configs
- run: make check-example-config-doc
- run: make check-drone-drift
- run: make check-generated-files
- run: make test
shellcheck:
runs-on: ubuntu-latest
container:
image: koalaman/shellcheck-alpine:stable
steps:
- uses: actions/checkout@v4
- run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- run: apk add make bash
- run: make lint-scripts
check-title:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}