Skip to content

Commit 403e0d8

Browse files
committed
make action
1 parent 575e8e3 commit 403e0d8

File tree

2 files changed

+26
-32
lines changed

2 files changed

+26
-32
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Smoke Test
2+
description: Runs Smoke Tests
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Checkout
7+
uses: actions/checkout@v4
8+
9+
- name: Set up Ruby
10+
uses: ruby/setup-ruby@v1
11+
with:
12+
ruby-version: 3.3
13+
14+
- name: Install Packages and Test
15+
run: |
16+
bundle install
17+
rake smoke
18+
env:
19+
RUBY_VERSION: 3.3
20+
OPERATING_SYSTEM: ubuntu
21+
shell: bash

.github/workflows/test-smoke.yml

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
paths:
1010
- "spec/smoke/*"
1111
- ".github/workflows/test-smoke.yml"
12+
- ".github/actions/smoke-test/*"
1213

1314
concurrency:
1415
group: ${{ github.workflow }}-${{ github.head_ref }}
@@ -36,22 +37,8 @@ jobs:
3637
BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }}
3738
BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_MESSAGING_APPLICATION_ID }}
3839
steps:
39-
- name: Checkout
40-
uses: actions/checkout@v4
41-
42-
- name: Set up Ruby
43-
uses: ruby/setup-ruby@v1
44-
with:
45-
ruby-version: 3.3
46-
47-
- name: Install Packages and Test
48-
run: |
49-
bundle install
50-
rake smoke
51-
env:
52-
RUBY_VERSION: 3.3
53-
OPERATING_SYSTEM: ubuntu
54-
shell: bash
40+
- name: Smoke Test
41+
uses: ./.github/actions/smoke-test
5542

5643
test_main_up:
5744
name: Smoke Test UP Account
@@ -62,22 +49,8 @@ jobs:
6249
BW_VOICE_APPLICATION_ID: ${{ secrets.BW_UP_VOICE_APPLICATION_ID }}
6350
BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_UP_MESSAGING_APPLICATION_ID }}
6451
steps:
65-
- name: Checkout
66-
uses: actions/checkout@v4
67-
68-
- name: Set up Ruby
69-
uses: ruby/setup-ruby@v1
70-
with:
71-
ruby-version: 3.3
72-
73-
- name: Install Packages and Test
74-
run: |
75-
bundle install
76-
rake smoke
77-
env:
78-
RUBY_VERSION: 3.3
79-
OPERATING_SYSTEM: ubuntu
80-
shell: bash
52+
- name: Smoke Test
53+
uses: ./.github/actions/smoke-test
8154

8255
notify_for_failures:
8356
name: Notify for Failures

0 commit comments

Comments
 (0)