Skip to content

Commit

Permalink
Merge pull request #7 from SwiftPackageIndex/add-ci
Browse files Browse the repository at this point in the history
Add ci.yml
  • Loading branch information
finestructure authored May 26, 2022
2 parents 857ddd6 + 56acd56 commit a1de1ca
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Continuous Integration

on:
workflow_dispatch:
push:

jobs:

build-release:
strategy:
matrix:
# https://github.com/actions/virtual-environments
os: [macos-12, ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- run: swift build --disable-automatic-resolution -c release

run-tests:
strategy:
matrix:
swift-version: [5.3, 5.4, 5.5, 5.6]
runs-on: ubuntu-20.04
steps:
- uses: fwal/setup-swift@v1
with:
swift-version: ${{ matrix.swift-version }}
- uses: actions/checkout@v2
- run: swift test

0 comments on commit a1de1ca

Please sign in to comment.