From a3253d728f7e8c5ff44d90267263d513c3f720b6 Mon Sep 17 00:00:00 2001 From: Fabrizio Demaria Date: Tue, 7 Feb 2023 13:18:28 +0100 Subject: [PATCH] Add GitHub Action CI --- .github/workflows/ci.yaml | 26 ++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..10820d9 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,26 @@ +name: CI + +on: + pull_request: + branches: + - 'main' + push: + branches: + - 'main' + +jobs: + test: + runs-on: macOS-latest + steps: + - uses: actions/checkout@v3 + - name: Build and Test + run: swift test + + swiftlint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: GitHub Action for SwiftLint + uses: norio-nomura/action-swiftlint@3.2.1 + with: + args: --config .swiftlint.yml diff --git a/README.md b/README.md index e91d6c0..8ae5fff 100644 --- a/README.md +++ b/README.md @@ -54,5 +54,5 @@ You can automatically format your code using: ## Running tests from cmd-line ```shell -./scripts/run_tests.sh +swift test ```