generated from cisagov/ScubaGear
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lets see if refactoring into separate workflow changes things
- Loading branch information
1 parent
b9d9878
commit 8bc89a2
Showing
2 changed files
with
88 additions
and
32 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,52 @@ | ||
name: Run ScubaGoggles | ||
on: | ||
workflow_call: | ||
inputs: | ||
os: | ||
required: true | ||
workflow_dispatch: | ||
|
||
jobs: | ||
run-scubagoggles-windows: | ||
if: ${{ inputs.os }} == "windows-latest" | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup dependencies | ||
uses: ./.github/actions/setup-windows-dependencies | ||
with: | ||
operating-system: "windows" | ||
opa-version: "0.60.0" | ||
|
||
- name: Execute ScubaGoggles and check for correct output | ||
run: | | ||
# Setup credentials for service account | ||
Set-Content -Path credentials.json -Value $env:GWS_GITHUB_AUTOMATION_CREDS | ||
pytest -s ./Testing/Functional/SmokeTests/ --subjectemail="$env:GWS_SUBJECT_EMAIL" | ||
run-scubagoggles-macos: | ||
if: ${{ inputs.os }} == "macos-latest" | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup dependencies | ||
uses: ./.github/actions/setup-macos-dependencies | ||
with: | ||
operating-system: "macos" | ||
opa-version: "0.60.0" | ||
|
||
- name: Execute ScubaGoggles and check for correct output | ||
run: | | ||
echo "in second step" | ||
# Give OPA executable execute permissions | ||
chmod +x opa_darwin_amd64 | ||
# Setup credentials for service account | ||
echo $env:GWS_GITHUB_AUTOMATION_CREDS | ||
echo $env:GWS_GITHUB_AUTOMATION_CREDS >> credentials.json | ||
cat credentials.json | ||
#pytest -s ./Testing/Functional/SmokeTests/ --subjectemail="$env:GWS_SUBJECT_EMAIL" |
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