Skip to content

Add GitHub Actions

Add GitHub Actions #2

Workflow file for this run

name: Lint
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
container: swift:6.0-jammy
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install apt dependencies
run: apt-get -qq update && apt-get -qq -y install curl
- name: Get common swift-format config
run: curl -L https://github.com/apple/swift-mmio/blob/main/SupportingFiles/Tools/swift-format/.swift-format -O
- name: Lint
run: swift-format lint --recursive --strict .