Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Minimal CI improvements (#6740)

Cenk Kücüke2af96d7c0f1
diff --git a/.github/workflows/all-checks-pass.yml b/.github/workflows/all-checks-pass.yml
index feb9b8c3fe..9f8230a37d 100644
--- a/.github/workflows/all-checks-pass.yml
+++ b/.github/workflows/all-checks-pass.yml
@@ -14,3 +14,5 @@ jobs:
uses: poseidon/wait-for-status-checks@e7e24423722c5b8e97a6dd5848827d2a412f812d # v0.7.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
+ ignore: merge-sharded-e2e-test-report
+ interval: 6
diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml
index 3862298e9d..ae06bc30b3 100644
--- a/.github/workflows/elixir.yml
+++ b/.github/workflows/elixir.yml
@@ -13,10 +13,12 @@ concurrency:
env:
CACHE_VERSION: v19
PERSISTENT_CACHE_DIR: cached
+ npm_config_audit: false
+ npm_config_fund: false
jobs:
build:
- name: "Build and test (${{ matrix.mix_env }}, ${{ matrix.postgres_image }})"
+ name: "Build and test (${{ matrix.mix_env }}, ${{ matrix.postgres_image }}, ${{ matrix.mix_test_partition }})"
runs-on: blacksmith-4vcpu-ubuntu-2404
strategy:
matrix:
@@ -33,23 +35,12 @@ jobs:
- 5432:5432
env:
POSTGRES_PASSWORD: postgres
- options: >-
- --health-cmd pg_isready
- --health-interval 10s
- --health-timeout 5s
- --health-retries 5
clickhouse:
image: clickhouse/clickhouse-server:25.11.5.8-alpine
ports:
- 8123:8123
env:
CLICKHOUSE_SKIP_USER_SETUP: 1
- options: >-
- --health-cmd "wget -q --spider http://127.0.0.1:8123/ping"
- --health-start-period 2m
- --health-interval 10s
- --health-timeout 5s
- --health-retries 5
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
@@ -98,6 +89,10 @@ jobs:
- run: mix deps.get --only $MIX_ENV
- run: mix compile --warnings-as-errors --all-warnings
+ - name: Wait for Postgres and ClickHouse
+ run: |
+ timeout 120 bash -c 'until docker exec ${{ job.services.postgres.id }} pg_isready -h 127.0.0.1 -U postgres -q; do sleep 0.5; done'
+ timeout 120 bash -c 'until curl -sf http://127.0.0.1:8123/ping > /dev/null; do sleep 0.5; done'
- run: mix do ecto.create, ecto.migrate
- run: mix run -e "Tzdata.ReleaseUpdater.poll_for_update"
@@ -129,23 +124,12 @@ jobs:
- 5432:5432
env:
POSTGRES_PASSWORD: postgres
- options: >-
- --health-cmd pg_isready
- --health-interval 10s
- --health-timeout 5s
- --health-retries 5
clickhouse:
image: clickhouse/clickhouse-server:25.11.5.8-alpine
ports:
- 8123:8123
env:
CLICKHOUSE_SKIP_USER_SETUP: 1
- options: >-
- --health-cmd "wget -q --spider http://127.0.0.1:8123/ping"
- --health-start-period 2m
- --health-interval 10s
- --health-timeout 5s
- --health-retries 5
strategy:
fail-fast: false
matrix:
@@ -214,6 +198,10 @@ jobs:
- run: mix compile --warnings-as-errors --all-warnings
- run: npm install --prefix ./assets
- run: mix assets.deploy
+ - name: Wait for Postgres and ClickHouse
+ run: |
+ timeout 120 bash -c 'until docker exec ${{ job.services.postgres.id }} pg_isready -h 127.0.0.1 -U postgres -q; do sleep 0.5; done'
+ timeout 120 bash -c 'until curl -sf http://127.0.0.1:8123/ping > /dev/null; do sleep 0.5; done'
- run: mix do ecto.create, ecto.migrate
- run: mix download_country_database
- run: mix run -e "Tzdata.ReleaseUpdater.poll_for_update"
diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml
index b1531cd05f..35f729a62e 100644
--- a/.github/workflows/node.yml
+++ b/.github/workflows/node.yml
@@ -10,6 +10,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
+env:
+ npm_config_audit: false
+ npm_config_fund: false
+
jobs:
build:
name: Build and test
diff --git a/Makefile b/Makefile
index 6e103cfc70..267ced6d0a 100644
--- a/Makefile
+++ b/Makefile
@@ -57,7 +57,7 @@ browserless:
docker run -e "TOKEN=dummy_token" -p 3000:3000 --network host ghcr.io/browserless/chromium
minio: ## Start a transient container with a recent version of minio (s3)
- docker run -d --rm -p 10000:10000 -p 10001:10001 --name plausible_minio minio/minio server /data --address ":10000" --console-address ":10001"
+ docker run -d --rm -p 10000:10000 -p 10001:10001 --name plausible_minio pgsty/minio:RELEASE.2026-08-04T00-00-00Z@sha256:b6bfe7239bfc83fb90d31612d9704d86039dd714f7904b3f1ad68f211e602372 server /data --address ":10000" --console-address ":10001"
while ! docker exec plausible_minio mc alias set local http://localhost:10000 minioadmin minioadmin; do sleep 1; done
docker exec plausible_minio sh -c 'mc mb local/dev-exports && mc ilm add --expiry-days 7 local/dev-exports'
docker exec plausible_minio sh -c 'mc mb local/dev-imports && mc ilm add --expiry-days 7 local/dev-imports'