Introduce pre commit #58
Workflow file for this run
This file contains 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
# Perform a dry-run on pull-requests | |
name: "PR Review Queue Dry Run" | |
on: # yamllint disable-line rule:truthy | |
pull_request | |
jobs: | |
lint: | |
name: Run all linters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Install prerequisites | |
run: | | |
pip install pre-commit | |
apt install aspell | |
shell: bash | |
- name: Run linters | |
run: make lint | |
shell: bash | |
test: | |
name: PR review queue dry run | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/ochosi/pr-review-queue:latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Create PR Review Queue for osbuild/osbuild | |
# yamllint disable rule:line-length | |
run: | | |
python3 pr_review_queue.py --github-token "${{ secrets.GITHUB_TOKEN }}" --queue --org osbuild --repo osbuild --dry-run | |
# yamllint enable rule:line-length | |
shell: bash |