Skip to content

Merge pull request #10 from magicbell/ullrich/fix-non-spm-dependencies #82

Merge pull request #10 from magicbell/ullrich/fix-non-spm-dependencies

Merge pull request #10 from magicbell/ullrich/fix-non-spm-dependencies #82

Workflow file for this run

name: Swift Tests
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: macos-latest
permissions:
contents: read
checks: write
pull-requests: write
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Checkout repository
uses: actions/checkout@v4
- name: SPM Cache
uses: actions/cache@v4
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Build
run: swift build --build-tests
- name: Lint
run: swift format lint --parallel --recursive --strict Package.swift Sources Tests
- name: Test
run: swift test --parallel --skip-build --xunit-output ./reports/xcunit.xml
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
with:
report_paths: './reports/xcunit*.xml'