Skip to content

Commit

Permalink
[ci] separate test and build
Browse files Browse the repository at this point in the history
  • Loading branch information
sebsto committed Oct 30, 2024
1 parent 67d0aea commit 1fa34df
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: swift build -v
run: swift build

test:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run tests
run: swift test -v
run: swift test
15 changes: 12 additions & 3 deletions .github/workflows/build_and_test_gh_hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,22 @@ on:
# DEVELOPER_DIR: /Applications/Xcode_15.1.app/Contents/Developer

jobs:

build:
runs-on: ubuntu-latest
container: swift:6.0-noble

steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: swift build -v
run: swift build

test:
runs-on: ubuntu-latest
container: swift:6.0-noble

steps:
- uses: actions/checkout@v4
- name: Run tests
run: swift test -v
run: swift test

0 comments on commit 1fa34df

Please sign in to comment.