diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..fa86e2f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: + - '*' + pull_request: + branches: + - main + +jobs: + test: + name: Test + runs-on: macOS-latest + strategy: + matrix: + destination: + - "platform=macOS" + - "platform=iOS Simulator,name=iPhone 11" + + 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