Skip to content

Commit

Permalink
Switch test workflow to use same steps as release workflow
Browse files Browse the repository at this point in the history
Using the a build workflow closer to the release workflow
means we're testing the code we're actually deploying
  • Loading branch information
leptos-null committed May 18, 2024
1 parent 4e16360 commit 7b94000
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,40 @@ name: Build and Test
on: [push, pull_request]

jobs:
build-and-test:
test:
runs-on: macos-12
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
run: swift test

build:
strategy:
matrix:
xcode-version: [ "11.7", "12.4" ]
package-scheme: [ "", "rootless" ]
# match release workflow
runs-on: macos-11
steps:
- uses: actions/checkout@v4
with:
submodules: true
path: orion
- name: Set Up Dependencies
run: |
brew install ldid make fakeroot
echo "THEOS=${GITHUB_WORKSPACE}/theos" >> "${GITHUB_ENV}"
echo "PATH=/usr/local/opt/make/libexec/gnubin:${PATH}" >> "${GITHUB_ENV}"
- name: Install Theos
uses: actions/checkout@v4
with:
repository: theos/theos
path: theos
submodules: recursive
- name: Build
run: |
cd orion
DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode-version }}.app/Contents/Developer \
make THEOS_PACKAGE_SCHEME="${{ matrix.package-scheme }}"

0 comments on commit 7b94000

Please sign in to comment.