Skip to content

Commit

Permalink
Merge pull request #3 from SwiftPackageIndex/github-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
daveverwer authored Jul 22, 2024
2 parents 61f929f + 8ccc248 commit 3ee6fa6
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "swift"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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@v4
- uses: fwal/setup-swift@v2
- name: Echo Swift version
run: swift --version
- name: Check a Release build
run: swift build --disable-automatic-resolution -c release

run-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: fwal/setup-swift@v2
- name: Echo Swift version
run: swift --version
- name: Run tests
run: swift test

0 comments on commit 3ee6fa6

Please sign in to comment.