Chore(deps): bump github/codeql-action from 86b7d4fc363de6ec65b66605da5fa8e7e0fe8028 to ce729e4d353d580e6cacd6a8cf2921b72e5e310a #425
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@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| - name: Set up Python | |
| uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.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@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| - 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 |