From e2ccb1a7fea23e52db0b12741a8b44e583dd4048 Mon Sep 17 00:00:00 2001 From: Jasmin Eilers <4738799+jaeilers@users.noreply.github.com> Date: Sat, 11 Nov 2023 22:02:23 +0100 Subject: [PATCH] Add github actions --- .github/actions/setup/action.yml | 9 +++++++++ .github/dependabot.yml | 12 ++++++++++++ .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 .github/actions/setup/action.yml create mode 100644 .github/workflows/ci.yml diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml new file mode 100644 index 0000000..23f0eac --- /dev/null +++ b/.github/actions/setup/action.yml @@ -0,0 +1,9 @@ +name: Setup +description: Set-up the dependencies of the project + +runs: + using: composite + steps: + - uses: ruby/setup-ruby@v1 + with: + bundler-cache: true diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 76853fd..3deb112 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,5 +1,17 @@ version: 2 updates: + # Updates workflows + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + + # Composite actions need to be updated separately + - package-ecosystem: "github-actions" + directory: "/.github/actions/setup" + schedule: + interval: "weekly" + - package-ecosystem: "bundler" directory: "/" schedule: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a353223 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI +on: + pull_request: + push: + branches: + - main + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + run-tests: + runs-on: macos-13 + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup + uses: ./.github/actions/setup + + - name: Run tests + run: bundle exec fastlane test_all