|
12 | 12 |
|
13 | 13 | permissions: |
14 | 14 | contents: read |
15 | | - pull-requests: write |
16 | 15 |
|
17 | 16 | concurrency: |
18 | | - group: ci-${{ github.ref }} |
| 17 | + group: ${{ github.workflow}}-${{ github.ref }} |
19 | 18 | cancel-in-progress: true |
20 | 19 |
|
21 | 20 | jobs: |
22 | 21 | pre-commit: |
23 | 22 | runs-on: ubuntu-latest |
24 | 23 | steps: |
25 | | - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
26 | | - - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 |
| 24 | + - name: clone the repository |
| 25 | + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 26 | + - name: set up Python |
| 27 | + uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 |
27 | 28 | with: |
28 | 29 | python-version: 3.x |
29 | | - - uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 |
| 30 | + - name: perform pre-commit checks |
| 31 | + uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 |
30 | 32 | env: |
31 | 33 | SKIP: no-commit-to-branch |
32 | 34 |
|
33 | 35 | local-test: |
34 | 36 | needs: pre-commit |
35 | 37 | runs-on: ubuntu-latest |
36 | 38 | steps: |
37 | | - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
38 | | - - name: Test problem matcher |
| 39 | + - name: clone the repository |
| 40 | + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 41 | + - name: test the problem matcher |
39 | 42 | id: expect-failure |
40 | 43 | uses: ./ |
41 | 44 | with: |
42 | 45 | config_file: .markdownlintrc |
43 | 46 | files: . |
44 | 47 | rules: examples/rules/custom.js |
45 | 48 | continue-on-error: true |
46 | | - - if: ${{ steps.expect-failure.outcome != 'failure' }} |
| 49 | + - name: check the result of the problem matcher test |
| 50 | + if: ${{ steps.expect-failure.outcome != 'failure' }} |
47 | 51 | run: | |
48 | 52 | exit 1 |
49 | | - - name: Test ignore_files |
| 53 | + - name: test ignore_files |
50 | 54 | uses: ./ |
51 | 55 | with: |
52 | 56 | config_file: .markdownlintrc |
53 | 57 | files: . |
54 | 58 | ignore_files: examples/ignore/* |
55 | 59 | rules: examples/rules/custom.js |
56 | | - - name: Test ignore_path |
| 60 | + - name: test ignore_path |
57 | 61 | uses: ./ |
58 | 62 | with: |
59 | 63 | config_file: .markdownlintrc |
|
0 commit comments