From d0fcfee18cf56f56a89dc3b055ee57ff59417277 Mon Sep 17 00:00:00 2001 From: "MohammadReza P." Date: Sat, 2 May 2026 21:26:04 +0330 Subject: [PATCH 1/3] modified test.yml on github action workflow --- .github/workflows/test.yml | 47 ++++---------------------------------- 1 file changed, 4 insertions(+), 43 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3629ae119b..8b41d3aaee 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,49 +9,10 @@ name: Test jobs: linux: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v5 - with: - fetch-depth: 0 - fetch-tags: true - - - uses: actions/setup-go@v6 - with: - go-version: '1.26.1' - cache: true - cache-dependency-path: go.sum - - - uses: golangci/golangci-lint-action@v9 - with: - version: v2.11.4 - - - name: Install Dependencies - shell: bash - run: make install-shellcheck - - - name: Lint Shell Scripts - run: make lint-shell - - - name: Check Format and Run Tests - run: make check - - - name: Setup SSH Key, Build and Run E2E - shell: bash - run: | - set -e - sudo ./ci_scripts/create-ip-aliases.sh - make e2e-build - make e2e-run - env: - DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} - DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} - - - name: Test E2E - run: make e2e-test - - - name: Clean E2E - run: make e2e-stop + uses: mrpalide/ci-runner/.github/workflows/skywire-linux-test.yml@main + secrets: + DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} + DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} darwin: runs-on: macos-latest From 36f78930a2fc3f990887213be1d7555e8ec531ff Mon Sep 17 00:00:00 2001 From: "MohammadReza P." Date: Sun, 3 May 2026 04:52:34 +0330 Subject: [PATCH 2/3] new changes, and use dispatch --- .github/workflows/test.yml | 55 +++++++++++++++++++++++++++++++++++--- 1 file changed, 51 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8b41d3aaee..b6bb5fff24 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,10 +9,57 @@ name: Test jobs: linux: - uses: mrpalide/ci-runner/.github/workflows/skywire-linux-test.yml@main - secrets: - DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} - DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} + runs-on: ubuntu-latest + timeout-minutes: 90 + steps: + - name: Compute dispatch id + id: dispatch + run: echo "id=skywire-pr-${{ github.event.pull_request.number }}-run-${{ github.run_id }}-${{ github.run_attempt }}" >> "$GITHUB_OUTPUT" + + - name: Trigger remote linux test on mrpalide/ci-runner + env: + GH_TOKEN: ${{ secrets.CI_RUNNER_DISPATCH_TOKEN }} + DISPATCH_ID: ${{ steps.dispatch.outputs.id }} + run: | + gh api repos/mrpalide/ci-runner/dispatches \ + --method POST \ + --input - <> "$GITHUB_OUTPUT" + echo "Found remote run: https://github.com/mrpalide/ci-runner/actions/runs/$RUN_ID" + exit 0 + fi + sleep 5 + done + echo "::error::Timed out waiting for remote workflow run to appear" + exit 1 + + - name: Wait for remote run to finish + env: + GH_TOKEN: ${{ secrets.CI_RUNNER_DISPATCH_TOKEN }} + run: gh run watch ${{ steps.find.outputs.run_id }} --repo mrpalide/ci-runner --exit-status darwin: runs-on: macos-latest From 90a68c9b069e44d741f92fdc21ddb82e4af1c3df Mon Sep 17 00:00:00 2001 From: "MohammadReza P." Date: Sun, 3 May 2026 05:00:34 +0330 Subject: [PATCH 3/3] new changes --- .github/workflows/test.yml | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b6bb5fff24..c5990eff91 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,12 +5,21 @@ on: - 'docs/**' - 'LICENSE' - '.gitignore' + pull_request_target: + paths-ignore: + - '**.md' + - 'docs/**' + - 'LICENSE' + - '.gitignore' name: Test jobs: linux: + if: github.event_name == 'pull_request_target' runs-on: ubuntu-latest timeout-minutes: 90 + permissions: + contents: read steps: - name: Compute dispatch id id: dispatch @@ -20,20 +29,17 @@ jobs: env: GH_TOKEN: ${{ secrets.CI_RUNNER_DISPATCH_TOKEN }} DISPATCH_ID: ${{ steps.dispatch.outputs.id }} + REPO: ${{ github.repository }} + PR_NUMBER: ${{ github.event.pull_request.number }} + SHA: ${{ github.event.pull_request.head.sha }} run: | gh api repos/mrpalide/ci-runner/dispatches \ --method POST \ - --input - <