Skip to content

Commit e8d5482

Browse files
committed
build(ci): add two separate workflows for build and tests
1 parent 9935af2 commit e8d5482

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
pull_request:
88

99
jobs:
10-
build_and_test:
11-
name: Build and Test
10+
build:
11+
name: Build
1212
runs-on: macos-latest
1313

1414
steps:
@@ -20,8 +20,16 @@ jobs:
2020
- name: Build library
2121
run: swift build --configuration debug
2222

23-
- name: Build test target
24-
run: swift build --configuration debug --target PodiumRequestsClientTests
23+
test:
24+
name: Run Tests
25+
runs-on: macos-latest
26+
needs: build
27+
28+
steps:
29+
- uses: actions/checkout@v4
30+
31+
- name: Select Xcode
32+
run: sudo xcode-select -s /Applications/Xcode.app
2533

2634
- name: Run tests
27-
run: swift test --skip-build --parallel
35+
run: swift test --parallel

0 commit comments

Comments
 (0)