Skip to content

Commit 7b94000

Browse files
committed
Switch test workflow to use same steps as release workflow
Using the a build workflow closer to the release workflow means we're testing the code we're actually deploying
1 parent 4e16360 commit 7b94000

File tree

1 file changed

+31
-4
lines changed

1 file changed

+31
-4
lines changed

.github/workflows/build_and_test.yml

+31-4
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,40 @@ name: Build and Test
33
on: [push, pull_request]
44

55
jobs:
6-
build-and-test:
6+
test:
77
runs-on: macos-12
88
steps:
99
- uses: actions/checkout@v4
1010
with:
1111
submodules: true
12-
- name: Build
13-
run: swift build -v
1412
- name: Run tests
15-
run: swift test -v
13+
run: swift test
14+
15+
build:
16+
strategy:
17+
matrix:
18+
xcode-version: [ "11.7", "12.4" ]
19+
package-scheme: [ "", "rootless" ]
20+
# match release workflow
21+
runs-on: macos-11
22+
steps:
23+
- uses: actions/checkout@v4
24+
with:
25+
submodules: true
26+
path: orion
27+
- name: Set Up Dependencies
28+
run: |
29+
brew install ldid make fakeroot
30+
echo "THEOS=${GITHUB_WORKSPACE}/theos" >> "${GITHUB_ENV}"
31+
echo "PATH=/usr/local/opt/make/libexec/gnubin:${PATH}" >> "${GITHUB_ENV}"
32+
- name: Install Theos
33+
uses: actions/checkout@v4
34+
with:
35+
repository: theos/theos
36+
path: theos
37+
submodules: recursive
38+
- name: Build
39+
run: |
40+
cd orion
41+
DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode-version }}.app/Contents/Developer \
42+
make THEOS_PACKAGE_SCHEME="${{ matrix.package-scheme }}"

0 commit comments

Comments
 (0)