From 31c30552c1d438445e228cb2e5056b3cb4221054 Mon Sep 17 00:00:00 2001 From: Calvin Walzel Date: Sun, 11 Feb 2024 11:31:53 +0100 Subject: [PATCH] Co-authored-by: Gitta van der Pol --- .github/workflows/minitest.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/minitest.yml diff --git a/.github/workflows/minitest.yml b/.github/workflows/minitest.yml new file mode 100644 index 0000000..9cb0874 --- /dev/null +++ b/.github/workflows/minitest.yml @@ -0,0 +1,26 @@ +name: Run minitest +on: + pull_request: + branches: [version-2] +jobs: + run-minitest: + runs-on: ubuntu-latest + services: + postgres: + image: postgres:16.2 + ports: ["5432:5432"] + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 + steps: + - uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + - name: Preparing database + run: bin/rails db:prepare + - name: Run tests + run: bin/rails test