From 23f0fa5288b335d27da6312f4f29548eaad8bc53 Mon Sep 17 00:00:00 2001 From: Daniel Del Rio Figueira Date: Mon, 30 Dec 2024 10:55:19 +0100 Subject: [PATCH] PB-37351: Added github workflow --- .github/workflows/push_pr_main.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/push_pr_main.yaml diff --git a/.github/workflows/push_pr_main.yaml b/.github/workflows/push_pr_main.yaml new file mode 100644 index 0000000..91b1550 --- /dev/null +++ b/.github/workflows/push_pr_main.yaml @@ -0,0 +1,28 @@ +name: Push & PR to the main branch + +on: push + +jobs: + lint: + name: Test ce images + runs-on: ruby:slim-bookworm + strategy: + matrix: + test_name: + [ + "docker_image", + "docker_runtime", + "docker_runtime_no_envs", + "docker_runtime_with_passbolt_php", + ] + rootless: [true, false] + steps: + - name: Checkout + uses: actions/checkout@v4 + - env: + PASSBOLT_FLAVOUR: "ce" + ROOTLESS: ${{ matrix.rootless }} + TEST_NAME: ${{ matrix.test_name }} + run: | + bundle install + rake spec:$TEST_NAME