Skip to content

Commit

Permalink
Update build+test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
btoms20 committed Feb 9, 2024
1 parent 5da8900 commit 575168b
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/build+test.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
name: Build & Test (macos & linux)
name: Build & Test

on:
push:
paths-ignore:
- 'README.md'
branches: [ main ]
pull_request:
paths-ignore:
- 'README.md'
branches: [ main ]

jobs:
build-macos:

runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v

build-linux:

runs-on: ubuntu-latest

test-matrix:
if: ${{ !(github.event.pull_request.draft || false) }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
swift-version: ["5.9", "5.8", "5.7"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: swift-actions/setup-swift@v1
with:
swift-version: ${{ matrix.swift-version }}
- name: Get swift version
run: swift --version
- name: Build
run: swift build -v
- name: Run tests
- name: Test
run: swift test -v

0 comments on commit 575168b

Please sign in to comment.