From 172d9f2299922e01241a6df5330b5caf98b77306 Mon Sep 17 00:00:00 2001 From: Florents Tselai Date: Tue, 17 Sep 2024 18:30:46 +0300 Subject: [PATCH] first ci --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3f5518b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: ci +on: [push, pull_request] +jobs: + ubuntu: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + redis-version: [ 6, 7 ] + include: + - postgres-version: 17 + os: ubuntu-22.04 + steps: + - name: Git checkout + uses: actions/checkout@v3 + + - name: Start Redis + - uses: supercharge/redis-github-action@1.7.0 + with: + redis-version: ${{ matrix.redis-version }} + + - uses: actions/checkout@v4 + - uses: ankane/setup-postgres@v1 + with: + postgres-version: ${{ matrix.postgres }} + dev-files: true + + - run: make + env: + PG_CFLAGS: -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare + - run: | + export PG_CONFIG=`which pg_config` + sudo --preserve-env=PG_CONFIG make install + - run: make installcheck + - if: ${{ failure() }} + run: cat regression.diffs \ No newline at end of file