From 451449edea3a0e1164a39448d627fff354f7d296 Mon Sep 17 00:00:00 2001 From: Matt <85322+mattmassicotte@users.noreply.github.com> Date: Mon, 19 Feb 2024 07:24:54 -0500 Subject: [PATCH] Add correct CI yaml --- .github/workflows/ci.yml | 36 ++++++++++++++---------------------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a8872f..772f9c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,31 +8,23 @@ on: - 'README.md' - 'CODE_OF_CONDUCT.md' - '.editorconfig' + - '.spi.yml' pull_request: branches: - main -jobs: - test: - name: Test - runs-on: macOS-latest - strategy: - matrix: - destination: - - "platform=macOS" - - "platform=iOS Simulator,name=iPhone 11" +env: + DEVELOPER_DIR: /Applications/Xcode_15.2.app/Contents/Developer +jobs: + lint: + name: Lint + runs-on: macos-14 steps: - - uses: actions/checkout@v3 - - name: Test platform ${{ matrix.destination }} - run: set -o pipefail && xcodebuild -scheme EditorConfig -destination "${{ matrix.destination }}" test | xcpretty - linux-test: - name: Test Linux - runs-on: ubuntu-latest - container: - image: swift:latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Test - run: swift test + - uses: actions/checkout@v4 + with: + submodules: recursive + - name: Install XCLint + run: brew tap mattmassicotte/XCLint https://github.com/mattmassicotte/XCLint.git && brew install xclint + - name: Run XCLint + run: xclint