From 55271d31c1cbddc1e84dd22f4f7036adbebbeb84 Mon Sep 17 00:00:00 2001 From: gkc Date: Fri, 15 Mar 2024 17:02:07 +0000 Subject: [PATCH] test: first iteration github action --- .github/workflows/e2e_all.yaml | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/e2e_all.yaml diff --git a/.github/workflows/e2e_all.yaml b/.github/workflows/e2e_all.yaml new file mode 100644 index 000000000..ffa8db088 --- /dev/null +++ b/.github/workflows/e2e_all.yaml @@ -0,0 +1,35 @@ +name: end_to_end_tests + +permissions: + contents: read + +on: + workflow_dispatch: + push: + branches: + - trunk + + pull_request: + branches: + - trunk + +jobs: + e2e_all: + # Don't run on PRs from a fork or Dependabot as the secrets aren't available + if: ${{ github.event.pull_request.head.repo.fork == false && github.actor != 'dependabot[bot]'}} + runs-on: ubuntu-latest + + steps: + - name: execute tests on cicd vm + uses: appleboy/ssh-action@029f5b4aeeeb58fdfe1410a5d17f967dacf36262 # v1.0.3 + env: + SHA: ${{ env.GITHUB_SHA }} + with: + host: ${{ secrets.NOPORTS_CICD_HOST }} + username: ubuntu + key: ${{ secrets.NOPORTS_CICD_SSH_KEY }} + envs: SHA + script: | + cd noports + git fetch + git checkout $SHA