-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9700db9
commit 12694a7
Showing
3 changed files
with
65 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# This is a generic workflow for gem Acceptance operations. | ||
name: "Windows Acceptance" | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
pull_request: | ||
branches: | ||
- "main" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
acceptance: | ||
name: "acceptance" | ||
runs-on: 'ubuntu-latest' | ||
timeout-minutes: 180 | ||
strategy: | ||
fail-fast: false | ||
|
||
env: | ||
PUPPET_VERSION: puppet8-nightly | ||
PUPPET_GEM_VERSION: puppet8-nightly | ||
|
||
steps: | ||
|
||
- name: "checkout" | ||
uses: "actions/checkout@v4" | ||
|
||
- name: "setup ruby" | ||
uses: "ruby/setup-ruby@v1" | ||
with: | ||
ruby-version: '3.2' | ||
bundler-cache: true | ||
|
||
- name: "Bundle environment" | ||
run: | | ||
echo ::group::bundler environment | ||
bundle env | ||
echo ::endgroup:: | ||
- name: "Provision environment" | ||
run: | | ||
bundle exec rake "litmus:provision[provision_service,windows-2019]" | ||
# Redact password | ||
FILE='spec/fixtures/litmus_inventory.yaml' | ||
sed -e 's/password: .*/password: "[redacted]"/' < $FILE || true | ||
- name: "print inventory" | ||
run: | | ||
cat ./spec/fixtures/litmus_inventory.yaml | ||
sleep 300 | ||
# Sleep for 5 minutes to allow the machine to boot | ||
|
||
- name: "Run acceptance tests" | ||
run: | | ||
bundle exec rake 'litmus:acceptance:parallel' | ||
- name: "Remove test environment" | ||
continue-on-error: true | ||
run: | | ||
if [[ -f spec/fixtures/litmus_inventory.yaml ]]; then | ||
bundle exec rake 'litmus:tear_down' | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters