From c17313dfd141ab140df2dbab3d0b9b27c41eb6eb Mon Sep 17 00:00:00 2001 From: Anthony Accomazzo Date: Mon, 12 May 2025 18:03:48 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Tweaks=20to=20pr-checks.yml=20(n?= =?UTF-8?q?ow:=20signoff-commit.yml)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{pr-checks.yml => signoff-commit.yml} | 15 +++++++++------ .../controllers/yaml_controller_test.exs | 6 +++--- 2 files changed, 12 insertions(+), 9 deletions(-) rename .github/workflows/{pr-checks.yml => signoff-commit.yml} (92%) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/signoff-commit.yml similarity index 92% rename from .github/workflows/pr-checks.yml rename to .github/workflows/signoff-commit.yml index cd4a306e5..c82c30957 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/signoff-commit.yml @@ -1,4 +1,4 @@ -name: PR Checks +name: Signoff commit env: # Base for the PR @@ -8,13 +8,16 @@ env: PR_HEAD_REPO: ${{ github.event.pull_request.head.repo.clone_url }} on: + push: + branches: [main] pull_request: types: [opened, synchronize, reopened] + workflow_dispatch: jobs: signoff-checks: name: signoff - runs-on: ubuntu-latest + runs-on: warp-ubuntu-latest-arm64-32x services: postgres: @@ -66,7 +69,7 @@ jobs: otp-version: '27.x' - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: '20.11.0' cache: 'npm' @@ -79,14 +82,14 @@ jobs: check-latest: true - name: Cache Elixir deps - uses: actions/cache@v3 + uses: WarpBuilds/cache@v1 with: path: deps key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} restore-keys: ${{ runner.os }}-mix- - name: Cache build artifacts - uses: actions/cache@v3 + uses: WarpBuilds/cache@v1 with: path: _build key: ${{ runner.os }}-build-${{ hashFiles('**/mix.lock') }} @@ -102,7 +105,7 @@ jobs: run: MIX_ENV=prod mix compile --warnings-as-errors - name: Run Elixir tests - run: mix test --max-cases 2 # slow actions runner + run: mix test --max-cases 8 - name: Run CLI tests run: | diff --git a/test/sequin_web/controllers/yaml_controller_test.exs b/test/sequin_web/controllers/yaml_controller_test.exs index 745943f32..079c5f821 100644 --- a/test/sequin_web/controllers/yaml_controller_test.exs +++ b/test/sequin_web/controllers/yaml_controller_test.exs @@ -133,11 +133,11 @@ defmodule SequinWeb.YamlControllerTest do hostname: localhost pool_size: 10 username: postgres - password: '********' + password: postgres database: sequin_test - slot_name: sequin_slot + slot_name: "#{replication_slot()}" use_local_tunnel: false - publication_name: characters_publication + publication_name: "#{@publication}" http_endpoints: - name: test_http_endpoint url: http://localhost:4000/something