-
Notifications
You must be signed in to change notification settings - Fork 15
50 lines (45 loc) · 1.28 KB
/
e2e_all.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: e2e_all
permissions:
contents: read
on:
workflow_dispatch:
push:
paths-ignore:
- "docs/**"
branches:
- trunk
pull_request:
paths-ignore:
- "docs/**"
branches:
- trunk
- release-v*.*.*
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]'}}
concurrency: e2e_all
runs-on: ubuntu-latest
steps:
- name: execute tests on cicd vm
uses: appleboy/ssh-action@7eaf76671a0d7eec5d98ee897acda4f968735a17 # v1.2.0
env:
SHA: ${{ github.event.pull_request.head.sha || github.sha }}
with:
host: ${{ secrets.NOPORTS_CICD_HOST }}
username: ubuntu
key: ${{ secrets.NOPORTS_CICD_SSH_KEY }}
envs: SHA
command_timeout: 15m
script: |
cd noports
rm -rf tests/e2e_all/runtime
mkdir -p tests/e2e_all/runtime
echo "Running git fetch"
git fetch
echo "Running git checkout -f $SHA"
git checkout -f "$SHA"
echo "Running tests"
tests/e2e_all/scripts/main.sh @apricoteventual @combinedbelgian @rv_am