|
1 | | ---- |
2 | | -################################# |
3 | | -################################# |
4 | | -## Super Linter GitHub Actions ## |
5 | | -################################# |
6 | | -################################# |
7 | | -name: Lint Code Base |
| 1 | +name: Lint |
8 | 2 |
|
9 | | -# |
10 | | -# Documentation: |
11 | | -# https://help.github.com/en/articles/workflow-syntax-for-github-actions |
12 | | -# |
13 | | - |
14 | | -############################# |
15 | | -# Start the job on all push # |
16 | | -############################# |
17 | 3 | on: |
18 | | - push: |
19 | | - branches-ignore: [master, main] |
| 4 | + pull_request: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + |
| 8 | +concurrency: |
| 9 | + group: ${{ github.ref }}-${{ github.workflow }} |
| 10 | + cancel-in-progress: true |
| 11 | + |
| 12 | +permissions: |
| 13 | + contents: read |
20 | 14 |
|
21 | | -############### |
22 | | -# Set the Job # |
23 | | -############### |
24 | 15 | jobs: |
25 | | - build: |
26 | | - # Name the Job |
27 | | - name: Lint Code Base |
28 | | - # Set the agent to run on |
| 16 | + lint: |
| 17 | + name: Lint |
29 | 18 | runs-on: ubuntu-latest |
30 | | - |
31 | | - ################## |
32 | | - # Load all steps # |
33 | | - ################## |
34 | 19 | steps: |
35 | | - ########################## |
36 | | - # Checkout the code base # |
37 | | - ########################## |
38 | 20 | - name: Checkout Code |
39 | | - uses: actions/checkout@v2 |
| 21 | + uses: actions/checkout@v4 |
40 | 22 | with: |
41 | | - # Full git history is needed to get a proper list of changed files within `super-linter` |
42 | 23 | fetch-depth: 0 |
43 | | - |
44 | | - ################################ |
45 | | - # Run Linter against code base # |
46 | | - ################################ |
47 | | - - name: Lint Code Base |
48 | | - uses: github/super-linter@v4 |
49 | | - env: |
50 | | - VALIDATE_ALL_CODEBASE: true |
51 | | - DEFAULT_BRANCH: main |
52 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 24 | + - name: Lint Code |
| 25 | + uses: golangci/golangci-lint-action@v3 |
0 commit comments