diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index e569291..95fb11b 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -2,26 +2,14 @@ name: CI Pipeline run-name: ${{ gitea.actor }} triggered CI pipeline on: - workflow_dispatch: {} # manual kick for debugging push: - branches: - - main - - develop - - 'adilallo/enhancement/TestingFramework' # keep quotes for slash + branches: [main, develop, "adilallo/enhancement/TestingFramework"] pull_request: - types: [opened, synchronize, reopened, ready_for_review] - branches: - - main - - develop + branches: [main, develop] jobs: - ping: - runs-on: [self-hosted, ubuntu-latest] - steps: - - run: echo "✅ Triggers work. Actor=${{ gitea.actor }} Ref=${{ gitea.ref }}" - test: - runs-on: ["self-hosted", "ubuntu-latest"] + runs-on: ubuntu-latest strategy: matrix: { node-version: [18, 20] } env: @@ -50,7 +38,7 @@ jobs: # bash codecov.sh -t "${{ secrets.CODECOV_TOKEN }}" -f coverage/lcov.info -F unittests e2e: - runs-on: ["self-hosted", "ubuntu-latest"] + runs-on: ubuntu-latest strategy: matrix: { browser: [chromium, firefox, webkit] } steps: @@ -83,7 +71,7 @@ jobs: retention-days: 30 visual-regression: - runs-on: ["self-hosted", "ubuntu-latest"] + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -97,7 +85,7 @@ jobs: # Seed snapshots on main branch only (one-time setup) - name: Seed snapshots (main only) - if: ${{ gitea.ref == 'refs/heads/main' }} + if: github.ref == 'refs/heads/main' run: PLAYWRIGHT_UPDATE_SNAPSHOTS=1 npx playwright test tests/e2e/visual-regression.spec.ts --project=chromium env: { CI: true } @@ -119,8 +107,8 @@ jobs: path: visual-regression.tgz retention-days: 30 - performance: - runs-on: ["self-hosted", "ubuntu-latest"] + performance: + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -158,7 +146,7 @@ jobs: path: lhci-results storybook: - runs-on: ["self-hosted", "ubuntu-latest"] + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -169,7 +157,7 @@ jobs: env: { CI: true } lint: - runs-on: ["self-hosted", "ubuntu-latest"] + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -179,7 +167,7 @@ jobs: - run: npx prettier --check "**/*.{js,jsx,ts,tsx,json,css,md}" build: - runs-on: ["self-hosted", "ubuntu-latest"] + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 diff --git a/.runner b/.runner index 9ce0663..eb78c5c 100644 --- a/.runner +++ b/.runner @@ -1,13 +1,12 @@ { "WARNING": "This file is automatically generated by act-runner. Do not edit it manually unless you know what you are doing. Removing this file will cause act runner to re-register as a new runner.", - "id": 9, - "uuid": "c5c01bc8-5bc2-4ede-b11a-fa4a76ae59f8", - "name": "community-rule-runner-2", - "token": "57620b9eaecfd6538d97e9a1e8d8f89e5f9fcc8a", + "id": 11, + "uuid": "e2bf20b6-d8b7-43d7-80fd-d0fd14858cb9", + "name": "community-rule-runner-1", + "token": "3f15646e056e9f6e449e036af6039e67b43a63b9", "address": "https://git.medlab.host", "labels": [ - "self-hosted", - "ubuntu-latest", - "ubuntu-22.04" + "macos-latest:host", + "self-hosted:host" ] } diff --git a/config.yaml b/config.yaml index 580e10f..23f70bb 100644 --- a/config.yaml +++ b/config.yaml @@ -9,9 +9,8 @@ runner: fetch_timeout: 5s fetch_interval: 2s labels: - - "self-hosted" - - "ubuntu-latest" - - "ubuntu-22.04" + - "macos-latest:host" + - "self-hosted:host" cache: enabled: true