This repository has been archived by the owner on Nov 20, 2024. It is now read-only.
dev -> main #3
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
name: auto-format | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
perform-checks: | |
if: github.repository == github.event.pull_request.head.repo.full_name | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ok-nick/[email protected] | |
with: | |
cache: true | |
- name: Lint | |
run: selene src | |
- name: Ensure version parity | |
run: lune run ensure-version-parity | |
- name: Ensure tests exist | |
run: lune run ensure-tests src | |
format: | |
needs: perform-checks | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ok-nick/[email protected] | |
with: | |
cache: true | |
- name: Format files | |
run: lune run format-files src | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "Auto-format files" |