From 5d8ac96683ef0562aa72b1f2aab8b1af14a50be3 Mon Sep 17 00:00:00 2001 From: ikelax <163678144+ikelax@users.noreply.github.com> Date: Fri, 31 May 2024 19:44:53 +0200 Subject: [PATCH] Run tests via GitHub Actions on pull requests (#5) --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ README.md | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) 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..9324cb9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: CI + +on: + push: + branches: + - main + paths-ignore: + - 'README.md' + - 'LICENSE' + - '.spi.yml' + pull_request: + branches: + - main + +jobs: + test: + name: Test + runs-on: macOS-14 + steps: + - uses: actions/checkout@v4 + - name: Test + run: set -o pipefail && swift test | xcbeautify --renderer github-actions diff --git a/README.md b/README.md index 23f852b..5493b79 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Declarative Text Kit - +[![Build Status][build status badge]][build status] [![Platforms][platforms badge]][platforms] [![Documentation][documentation badge]][documentation]