fix(ci): Use GH secrets instead #3
Workflow file for this run
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
name: KFC 11.X.X Tests | |
on: | |
push: | |
branches: | |
- "*" | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.20" | |
- name: Install dependencies | |
run: go mod download && go mod tidy | |
- name: Install Azure CLI | |
run: | | |
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash | |
az --version | |
### Store Type Tests | |
Test_StoreTypes_KFC_11_0_0: | |
runs-on: self-hosted | |
needs: build | |
env: | |
SECRET_NAME: "command-config-1100-clean" | |
KEYFACTOR_HOSTNAME: "int11-test-clean.kfdelivery.com" | |
KEYFACTOR_DOMAIN: "command" | |
KEYFACTOR_USERNAME: ${{ secrets.LAB_USERNAME }} | |
KEYFACTOR_PASSWORD: ${{ secrets.LAB_PASSWORD }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run tests | |
run: | | |
unset KFUTIL_DEBUG | |
go test -v ./cmd -run "^Test_StoreTypes*" | |
### Store Tests | |
Test_Stores_KFC_11_0_0: | |
runs-on: self-hosted | |
needs: | |
- build | |
- Test_StoreTypes_KFC_11_0_0 | |
env: | |
SECRET_NAME: "command-config-1100" | |
KEYFACTOR_HOSTNAME: "integrations1100b3-lab.kfdelivery.com" | |
KEYFACTOR_DOMAIN: "command" | |
KEYFACTOR_USERNAME: ${{ secrets.LAB_USERNAME }} | |
KEYFACTOR_PASSWORD: ${{ secrets.LAB_PASSWORD }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run tests | |
run: | | |
unset KFUTIL_DEBUG | |
go test -v ./cmd -run "^Test_Stores_*" | |
### PAM Tests | |
Test_PAM_KFC_11_0_0: | |
runs-on: self-hosted | |
needs: | |
- build | |
- Test_StoreTypes_KFC_11_0_0 | |
env: | |
SECRET_NAME: "command-config-1100" | |
KEYFACTOR_HOSTNAME: "integrations1100b3-lab.kfdelivery.com" | |
KEYFACTOR_DOMAIN: "command" | |
KEYFACTOR_USERNAME: ${{ secrets.LAB_USERNAME }} | |
KEYFACTOR_PASSWORD: ${{ secrets.LAB_PASSWORD }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run tests | |
run: | | |
unset KFUTIL_DEBUG | |
go test -v ./cmd -run "^Test_PAM*" |