diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..fb2c989 --- /dev/null +++ b/.github/dependabot.yml @@ -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" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..25ae0dc --- /dev/null +++ b/.github/workflows/ci.yml @@ -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