|
1 | | -name: Shared Steps |
| 1 | +# name: Shared Steps |
2 | 2 |
|
3 | | -on: |
4 | | - workflow_call: |
5 | | - inputs: |
6 | | - branch: |
7 | | - required: true |
8 | | - type: string |
| 3 | +# on: |
| 4 | +# workflow_call: |
| 5 | +# inputs: |
| 6 | +# branch: |
| 7 | +# required: true |
| 8 | +# type: string |
9 | 9 |
|
10 | | -jobs: |
11 | | - unit-test: |
12 | | - runs-on: ubuntu-latest |
13 | | - strategy: |
14 | | - matrix: |
15 | | - node-version: [16, 18] |
16 | | - steps: |
17 | | - - name: Checkout for nightly CI |
18 | | - if: github.event_name == 'schedule' |
19 | | - uses: actions/checkout@v3 |
20 | | - with: |
21 | | - ref: ${{ inputs.branch }} |
| 10 | +# jobs: |
| 11 | +# unit-test: |
| 12 | +# runs-on: ubuntu-latest |
| 13 | +# strategy: |
| 14 | +# matrix: |
| 15 | +# node-version: [16, 18] |
| 16 | +# steps: |
| 17 | +# - name: Checkout for nightly CI |
| 18 | +# if: github.event_name == 'schedule' |
| 19 | +# uses: actions/checkout@v3 |
| 20 | +# with: |
| 21 | +# ref: ${{ inputs.branch }} |
22 | 22 |
|
23 | | - - name: Checkout |
24 | | - if: github.event_name != 'schedule' |
25 | | - uses: actions/checkout@v3 |
| 23 | +# - name: Checkout |
| 24 | +# if: github.event_name != 'schedule' |
| 25 | +# uses: actions/checkout@v3 |
26 | 26 |
|
27 | | - - name: Get branch name |
28 | | - run: | |
29 | | - echo "Branch name from trigger: ${{ inputs.branch }}" |
| 27 | +# - name: Get branch name |
| 28 | +# run: | |
| 29 | +# echo "Branch name from trigger: ${{ inputs.branch }}" |
30 | 30 |
|
31 | | - - name: Install node required |
32 | | - uses: actions/setup-node@v3 |
33 | | - with: |
34 | | - node-version: ${{ matrix.node-version }} |
| 31 | +# - name: Install node required |
| 32 | +# uses: actions/setup-node@v3 |
| 33 | +# with: |
| 34 | +# node-version: ${{ matrix.node-version }} |
35 | 35 |
|
36 | | - - name: Install dependencies |
37 | | - run: npm ci |
| 36 | +# - name: Install dependencies |
| 37 | +# run: npm ci |
38 | 38 |
|
39 | | - - name: run hello.js |
40 | | - run: | |
41 | | - node ./hello.js |
| 39 | +# - name: run hello.js |
| 40 | +# run: | |
| 41 | +# node ./hello.js |
42 | 42 |
|
43 | | - api-test: |
44 | | - runs-on: ubuntu-latest |
45 | | - strategy: |
46 | | - matrix: |
47 | | - node-version: [16, 18] |
48 | | - steps: |
49 | | - - name: Checkout for nightly CI |
50 | | - if: github.event_name == 'schedule' |
51 | | - uses: actions/checkout@v3 |
52 | | - with: |
53 | | - ref: ${{ inputs.branch }} |
| 43 | +# api-test: |
| 44 | +# runs-on: ubuntu-latest |
| 45 | +# strategy: |
| 46 | +# matrix: |
| 47 | +# node-version: [16, 18] |
| 48 | +# steps: |
| 49 | +# - name: Checkout for nightly CI |
| 50 | +# if: github.event_name == 'schedule' |
| 51 | +# uses: actions/checkout@v3 |
| 52 | +# with: |
| 53 | +# ref: ${{ inputs.branch }} |
54 | 54 |
|
55 | | - - name: Checkout |
56 | | - if: github.event_name != 'schedule' |
57 | | - uses: actions/checkout@v3 |
| 55 | +# - name: Checkout |
| 56 | +# if: github.event_name != 'schedule' |
| 57 | +# uses: actions/checkout@v3 |
58 | 58 |
|
59 | | - - name: Get branch name |
60 | | - run: | |
61 | | - echo "Branch name from trigger: ${{ inputs.branch }}" |
| 59 | +# - name: Get branch name |
| 60 | +# run: | |
| 61 | +# echo "Branch name from trigger: ${{ inputs.branch }}" |
62 | 62 |
|
63 | | - - name: Install node required |
64 | | - uses: actions/setup-node@v3 |
65 | | - with: |
66 | | - node-version: ${{ matrix.node-version }} |
| 63 | +# - name: Install node required |
| 64 | +# uses: actions/setup-node@v3 |
| 65 | +# with: |
| 66 | +# node-version: ${{ matrix.node-version }} |
67 | 67 |
|
68 | | - - name: Install dependencies |
69 | | - run: npm ci |
| 68 | +# - name: Install dependencies |
| 69 | +# run: npm ci |
70 | 70 |
|
71 | | - - name: run hello.js |
72 | | - run: | |
73 | | - node ./hello.js |
| 71 | +# - name: run hello.js |
| 72 | +# run: | |
| 73 | +# node ./hello.js |
74 | 74 |
|
75 | | - notify: |
76 | | - needs: |
77 | | - - unit-test |
78 | | - - api-test |
79 | | - # if: ${{ always() && github.event_name == 'schedule' }} |
80 | | - if: ${{ always() }} |
81 | | - runs-on: ubuntu-latest |
82 | | - steps: |
83 | | - - name: checkout |
84 | | - uses: actions/checkout@v2 |
85 | | - with: |
86 | | - ref: main |
| 75 | +# notify: |
| 76 | +# needs: |
| 77 | +# - unit-test |
| 78 | +# - api-test |
| 79 | +# # if: ${{ always() && github.event_name == 'schedule' }} |
| 80 | +# if: ${{ always() }} |
| 81 | +# runs-on: ubuntu-latest |
| 82 | +# steps: |
| 83 | +# - name: checkout |
| 84 | +# uses: actions/checkout@v2 |
| 85 | +# with: |
| 86 | +# ref: main |
87 | 87 |
|
88 | | - - name: Step 2 |
89 | | - env: |
90 | | - ELEMENT_CHAT_URL: ${{ secrets.ELEMENT_CHAT_URL }} |
91 | | - ELEMENT_ROOM_ID: ${{ secrets.ELEMENT_ROOM_ID }} |
92 | | - NIGHTLY_CI_USER_TOKEN: ${{ secrets.NIGHTLY_CI_USER_TOKEN }} |
93 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
94 | | - REPO_OWNER: ${{ github.actor }} |
95 | | - REPO_NAME: ${{ github.event.repository.name }} |
96 | | - RUN_ID: ${{ github.run_id }} |
97 | | - BRANCH_NAME: ${{ inputs.branch }} |
98 | | - run: ./.github/scripts/notify.sh |
| 88 | +# - name: Step 2 |
| 89 | +# env: |
| 90 | +# ELEMENT_CHAT_URL: ${{ secrets.ELEMENT_CHAT_URL }} |
| 91 | +# ELEMENT_ROOM_ID: ${{ secrets.ELEMENT_ROOM_ID }} |
| 92 | +# NIGHTLY_CI_USER_TOKEN: ${{ secrets.NIGHTLY_CI_USER_TOKEN }} |
| 93 | +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 94 | +# REPO_OWNER: ${{ github.actor }} |
| 95 | +# REPO_NAME: ${{ github.event.repository.name }} |
| 96 | +# RUN_ID: ${{ github.run_id }} |
| 97 | +# BRANCH_NAME: ${{ inputs.branch }} |
| 98 | +# run: ./.github/scripts/notify.sh |
0 commit comments