Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
stigi committed Oct 17, 2024
1 parent 8a0c1fe commit 2223fc5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/spm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@ on:
push:
branches:
- main
- ullrich/test

jobs:
build:
runs-on: macos-latest
runs-on: macos-15
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Install Dependencies
run: brew update && brew install --force xcbeautify
xcode-version: latest
- name: Checkout repository
uses: actions/checkout@v4
- name: SPM Cache
Expand All @@ -25,7 +24,19 @@ jobs:
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Environment
run: |
swift --version
xcode-select -p
xcbeautify --version
- name: Build
run: swift build --build-tests
- name: Test
run: set -o pipefail && swift test --skip-build | xcbeautify --renderer github-actions
run: |
set -o pipefail
swift test --parallel --skip-build --xcunit-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'
2 changes: 1 addition & 1 deletion Tests/EmbeddedProvisionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct EmbeddedProvisionProperties {

@Test("parses app ID")
func appIDName() throws {
#expect(provision.appIDName == "A Fake App for Testing")
#expect(provision.appIDName == "A Fake App for Testing - provoking a test failure")
}

@Test("parses platform")
Expand Down

0 comments on commit 2223fc5

Please sign in to comment.