Skip to content

Commit 11da1a9

Browse files
committed
Add basic acceptance testing
1 parent 25efeca commit 11da1a9

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/acceptance.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name: Beaker Acceptance Tests
3+
4+
on:
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: read
9+
10+
env:
11+
RUBY_VERSION: '3.3'
12+
13+
jobs:
14+
acceptance:
15+
defaults:
16+
run:
17+
working-directory: acceptance
18+
name: Acceptance Tests
19+
runs-on: ubuntu-24.04
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
- name: Install Ruby and Run Bundler
25+
uses: ruby/setup-ruby@v1
26+
with:
27+
ruby-version: ${{ env.RUBY_VERSION }}
28+
bundler-cache: true
29+
- name: Run Beaker
30+
run: |-
31+
bundle exec beaker init --hosts hosts.yaml \
32+
--preserve-hosts always --keyfile "${SSH_KEY}" \
33+
--pre-suite pre-suite/configure_type_defaults.rb \
34+
--tests tests
35+
# The provision step is still needed here, see notes in the
36+
# kvm_automation_tooling/templates/beaker-hosts.yaml.epp
37+
# template...
38+
bundle exec beaker provision
39+
bundle exec beaker exec

0 commit comments

Comments
 (0)