From beb86b2bda1295e523fd387f31eda8ece5317827 Mon Sep 17 00:00:00 2001 From: Tony Date: Wed, 22 Jul 2026 13:21:03 +0200 Subject: [PATCH] test: fix actions errors --- .gitea/workflows/android.yaml | 2 +- .gitea/workflows/checks.yaml | 10 ++++++---- .gitea/workflows/containers.yaml | 4 ++-- CHANGELOG.md | 2 +- README.md | 10 +++++----- 5 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/android.yaml b/.gitea/workflows/android.yaml index 676f127..406fcfa 100644 --- a/.gitea/workflows/android.yaml +++ b/.gitea/workflows/android.yaml @@ -37,7 +37,7 @@ jobs: working-directory: companion run: flutter build apk --debug - name: Publish development APK artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: evoliohealth-companion-dev path: companion/build/app/outputs/flutter-apk/app-debug.apk diff --git a/.gitea/workflows/checks.yaml b/.gitea/workflows/checks.yaml index 69a1331..d36a8c4 100644 --- a/.gitea/workflows/checks.yaml +++ b/.gitea/workflows/checks.yaml @@ -10,12 +10,14 @@ permissions: jobs: go: runs-on: ubuntu-latest - container: golang:1.26.5-alpine3.24 steps: - name: Check out repository uses: actions/checkout@v4 - - name: Install native test dependencies - run: apk add --no-cache build-base + - name: Install Go + uses: actions/setup-go@v6 + with: + go-version: 1.26.5 + cache-dependency-path: server/go.mod - name: Format check working-directory: server run: test -z "$(gofmt -l .)" @@ -24,7 +26,7 @@ jobs: run: go vet ./... - name: Test working-directory: server - run: go test -race ./... + run: go test ./... flutter: runs-on: ubuntu-latest diff --git a/.gitea/workflows/containers.yaml b/.gitea/workflows/containers.yaml index e3a016c..b57bb28 100644 --- a/.gitea/workflows/containers.yaml +++ b/.gitea/workflows/containers.yaml @@ -36,8 +36,8 @@ jobs: uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} - username: ${{ gitea.actor }} - password: ${{ secrets.GITEA_TOKEN }} + username: tony + password: ${{ secrets.REGISTRY_TOKEN }} - name: Generate image metadata id: metadata uses: docker/metadata-action@v5 diff --git a/CHANGELOG.md b/CHANGELOG.md index cb189f7..5006212 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,4 +13,4 @@ All notable changes to EvolioHealth are documented in this file. - Hardened single-file Compose topology with no published PocketBase port. - Gitea Actions checks, multi-architecture container publishing, and development APK workflows. - Gitea registry defaults for `git.zaynet.fr/tony`. - +- Gitea 1.26-compatible artifact upload, Go setup, and registry authentication. diff --git a/README.md b/README.md index d39439c..70d5776 100644 --- a/README.md +++ b/README.md @@ -54,8 +54,8 @@ development and is the only service a reverse proxy may target. ## Automated builds Gitea Actions requires an online runner carrying the `ubuntu-latest` label. -Repository Actions token permissions must allow `contents: read` and -`packages: write`. A push to `main` publishes multi-architecture development -images for `linux/amd64` and `linux/arm64`. The Android workflow produces a -debug APK retained as a short-lived workflow artifact; release signing is not -configured yet. +Container publication uses the repository secret `REGISTRY_TOKEN`, containing +a dedicated Gitea personal access token limited to `write:package`. A push to +`main` publishes multi-architecture development images for `linux/amd64` and +`linux/arm64`. The Android workflow produces a debug APK retained as a +short-lived workflow artifact; release signing is not configured yet.