Skip to content

Commit

Permalink
build: fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
beatt83 committed Jan 28, 2024
1 parent bcc3b57 commit 4f6f0bb
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 6 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Swift

on:
push:
branches: [ "main" ]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: macos-13

steps:
- uses: actions/checkout@v3
- name: Build
run: xcodebuild build test -scheme "peerdid-swift" -destination "platform=macOS" -resultBundlePath TestResults
19 changes: 13 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,27 @@
name: Swift

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:

runs-on: macos-latest
runs-on: macos-13

steps:
- uses: actions/checkout@v3
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
run: xcodebuild build test -scheme "peerdid-swift" -destination "platform=macOS" -resultBundlePath TestResults

- name: Publish tests results
uses: kishikawakatsumi/xcresulttool@v1.7.1
with:
path: TestResults.xcresult
show-code-coverage: true
if: success() || failure()

0 comments on commit 4f6f0bb

Please sign in to comment.