Bump github/codeql-action from 86b04fb0e47484f7282357688f21d5d0e32175fe to 466d6ce58447f9589003cca18ec288b128465541 #259
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # yamllint disable rule:line-length | |
| --- | |
| name: CI | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| push: | |
| branches: | |
| - master | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone the repository | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Set up Python | |
| uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | |
| with: | |
| python-version: 3.x | |
| - name: Perform pre-commit checks | |
| uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 | |
| env: | |
| SKIP: no-commit-to-branch | |
| local-test: | |
| needs: pre-commit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone the repository | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Test the problem matcher | |
| id: expect-failure | |
| uses: ./ | |
| with: | |
| config_file: .markdownlintrc | |
| files: . | |
| rules: examples/rules/custom.js | |
| continue-on-error: true | |
| - name: Check the result of the problem matcher test | |
| if: ${{ steps.expect-failure.outcome != 'failure' }} | |
| run: | | |
| exit 1 | |
| - name: Test ignore_files | |
| uses: ./ | |
| with: | |
| config_file: .markdownlintrc | |
| files: . | |
| ignore_files: examples/ignore/* | |
| rules: examples/rules/custom.js | |
| - name: Test ignore_path | |
| uses: ./ | |
| with: | |
| config_file: .markdownlintrc | |
| files: . | |
| ignore_path: examples/.markdownlintignore | |
| rules: examples/rules/custom.js |