Fix shellcheck issue #35
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
# Build and Test | |
name: Validate Formatting | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
validate-formatting: | |
name: Validate Formatting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Make devcontainer 'default' singular | |
run: .devcontainer/devcontainer-helper --make-singular default | |
- name: Initialize devcontainer | |
uses: devcontainers/[email protected] | |
with: | |
push: never | |
runCmd: | | |
echo "Devcontainer Initialized." | |
- name: Build | |
uses: devcontainers/[email protected] | |
with: | |
push: never | |
runCmd: | | |
swift format --recursive --in-place --parallel . | |
- name: Check that repository is clean | |
run: | |
.devcontainer/devcontainer-helper --clean | |
git diff --exit-code |