Skip to content

Commit 9c77676

Browse files
committed
ci: add tests workflow
1 parent 6fab90e commit 9c77676

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/tests.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Run tests
2+
3+
# Controls when the workflow will run
4+
on:
5+
push:
6+
branches: ["main"]
7+
pull_request:
8+
branches: ["main"]
9+
10+
# Run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
14+
jobs:
15+
# This workflow contains a single job called "build"
16+
test:
17+
# The type of runner that the job will run on
18+
runs-on: ubuntu-latest
19+
20+
# Steps represent a sequence of tasks that will be executed as part of the job
21+
steps:
22+
- name: Install Ruby
23+
uses: ruby/[email protected]
24+
with:
25+
ruby-version: "3.3"
26+
- name: Checkout Bashly
27+
uses: actions/checkout@v4
28+
with:
29+
repository: "DannyBen/bashly"
30+
ref: "dc240d269eef53bf763180922646bd13cd2875b3"
31+
path: "bashly"
32+
33+
- name: Build Bashly
34+
run: |
35+
cd bashly
36+
gem install bashly
37+
38+
- name: Install Shellspec
39+
run: |
40+
curl -fsSL https://git.io/shellspec | bash -s -- --yes
41+
42+
- name: Checkout cfme
43+
uses: actions/checkout@v4
44+
with:
45+
repository: "codevogel/commit-for-me"
46+
47+
- name: Build cfme
48+
run: |
49+
bashly generate
50+
51+
- name: Run tests
52+
run: |
53+
shellspec --shell bash --warning-as-failure -f d

0 commit comments

Comments
 (0)