Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tumevoiz committed Sep 10, 2021
1 parent 2c3177a commit fd19256
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions .github/workflows/swift-macos.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
name: Swift

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
swift: ["5.4", "5.2.4"]
steps:
- uses: fwal/setup-swift@v1
with:
swift-version: ${{ matrix.swift }}
- name: Get swift version
run: swift --version
- name: Build
run: swift build -v
- name: Test
run: swift test -v

0 comments on commit fd19256

Please sign in to comment.