Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
rauhul committed Dec 12, 2024
1 parent f8976cb commit 5d537e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,18 @@ concurrency:
cancel-in-progress: true

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
container: swift:6.0-jammy
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: apt-get -qq update && apt-get -qq -y install make
- name: Lint
run: make lint

soundness:
name: Soundness
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
with:
api_breakage_check_enabled: false # this repo isn't API stable yet
license_header_check_project_name: "Swift.org"
docs_check_enabled: false # too slow
license_header_check_enabled: false # requies too much configuration
license_header_check_project_name: "Swift.org" # bug: https://github.com/swiftlang/github-workflows/issues/7

test:
name: Swift (${{ matrix.swift.version }}) / Ubuntu (${{ matrix.os.version }})
runs-on: ubuntu-latest
needs: soundness
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 0 additions & 2 deletions .licenseignore

This file was deleted.

4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,20 @@
#===------------------------------------------------------------------------===#

CONFIGURATION = debug
SWIFT_FORMAT_CONFIGURATION := SupportingFiles/Tools/swift-format/.swift-format
SKIP_LINT =

.PHONY: all lint format build test clean
all: test

lint:
@echo "linting..."
@swift-format lint \
--configuration $(SWIFT_FORMAT_CONFIGURATION) \
--recursive \
--strict \
Package.swift Plugins Sources Tests

format:
@echo "formatting..."
@swift-format format \
--configuration $(SWIFT_FORMAT_CONFIGURATION) \
--recursive \
--in-place \
Package.swift Plugins Sources Tests
Expand Down

0 comments on commit 5d537e9

Please sign in to comment.