From ca8214fdcc771001ec4d7e7ed4e90126c2b402fc Mon Sep 17 00:00:00 2001 From: mathias234 Date: Tue, 2 Dec 2025 11:00:35 +0100 Subject: [PATCH] Add workflow --- .gitea/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..c954c7f --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI Pipeline +on: + pull_request: + branches: + - '*' + push: + branches: + - master +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: false +jobs: + build: + runs-on: ruby-latest + env: + RAILS_ENV: test + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Cache Ruby gems + uses: actions/cache@v4 + with: + path: vendor/bundle + key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} + restore-keys: | + ${{ runner.os }}-gems- + + - name: Install Ruby dependencies + run: bundle install --path vendor/bundle + + - name: Run tests and linting + run: bundle exec rake