From 84562097764acd32239ec42001aa4b6fdffbaada Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Fri, 19 Jan 2024 20:38:12 +0100 Subject: [PATCH] add CI --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..516ced5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: Build and Test library +on: + push: + branches: [main] + pull_request: +jobs: + build: + runs-on: [macos-latest] + env: + XC_VERSION: ${{ '15.2' }} + steps: + - name: Select latest Xcode + run: "sudo xcode-select -s /Applications/Xcode_$XC_VERSION.app" + - uses: actions/checkout@v3 + - name: Run Unit and UI Tests + run: swift test + lint: + runs-on: ubuntu-latest + container: + image: ghcr.io/realm/swiftlint:latest + + steps: + - uses: actions/checkout@v3 + - name: SwiftLint + run: | + swiftlint --reporter github-actions-logging --strict \ No newline at end of file