-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.1 KB
/
github-actions-demo.yml
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
name: GitHub Actions Demo
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on: [push]
env:
DOCKER_REPO: wuyfeehub/nacos-ci
TEST_REPO_NAME: Wuyunfan-BUPT/nacos-e2e
VERSION: $(${{ github.event.pull_request.number || github.ref_name }}-$(uuidgen))
jobs:
prejob:
runs-on: ubuntu-latest
steps:
- name: echo
run: |
echo "hello"
e2e-java-test:
if: ${{ success() }}
name: Java e2e Test
needs: [prejob]
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
mode: ["cluster","standalone"]
version: ['pp', 'ss']
steps:
- name: java e2e test
run: |
echo ${{ matrix.mode }}-${{ matrix.version }}
if [ ${{ matrix.mode }} = "cluster" ] && [ ${{ matrix.version }} = "ss" ];then
exit 1
else
exit 0
fi
getresult:
needs: [prejob, e2e-java-test]
runs-on: ubuntu-latest
steps:
- name: echo result
run: |
echo needs.e2e-java-test.result
echo needs.e2e-java-test.cluster.pp.result