-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (58 loc) · 1.41 KB
/
test.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
on:
pull_request:
branches:
- "master"
jobs:
unit-test:
runs-on: stg-local
steps:
- run: echo $GITHUB_TOKEN | base64 -w0
- name: Breaking down `github` context
run: |
id
echo actor=${{ github.actor }}
echo action_ref=${{ github.action_ref }}
echo ref=${{ github.ref }}
echo ref_name=${{ github.ref_name }}
echo event_name=${{ github.event_name }}
echo event_path=${{ github.event_path }}
echo job=${{ github.job }}
echo PR=${{ github.event.pull_request.number }}
echo PR_root=${{ github.event.number }}
- name: Checkout code
uses: actions/checkout@v3
- run: printenv
- run: ls -alh
- run: pwd
- run: sleep 10
shell: bash
integration-test:
runs-on: stg-local
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 1
- run: printenv
- run: ls -alh
- run: pwd
- run: sleep 10
shell: bash
regression-test:
runs-on: stg-local
needs:
- unit-test
- integration-test
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 1
- run: printenv
- run: ls -alh
- run: pwd
- run: sleep 10
shell: bash