CMU-Delphi submission 2025-07-24 #7
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
############################################################################### | |
# OVERVIEW | |
############################################################################### | |
# The following is a workflow derived from | |
# https://github.com/posit-dev/setup-air/blob/main/examples/format-check.yaml | |
# | |
# Description: | |
# | |
# This runs air format . --check on every push to main and on every pull | |
# request. This is a very simple action that fails if any files would be | |
# reformatted. When this happens, reformat locally using air format . or | |
# the Air: Format Workspace Folder command in VS Code or Positron, and commit | |
# and push the results. | |
############################################################################### | |
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
name: format-check.yaml | |
permissions: read-all | |
jobs: | |
format-check: | |
name: format-check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install | |
uses: posit-dev/setup-air@v1 | |
- name: Check | |
run: air format . --check |