fix(ci): WIP #30
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: Go Test | |
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_Stores_KFC_11_0_0: | |
# runs-on: self-hosted | |
# needs: build | |
# env: | |
# SECRET_NAME: "command-config-1100" | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v4 | |
# | |
# - name: list dir | |
# run: ls -la | |
# | |
# - name: Get secret from Azure Key Vault | |
# run: | | |
# . ./examples/auth/akv/akv_auth.sh | |
# | |
# - name: Run tests | |
# run: go test -v ./cmd -run "^Test_Stores*" | |
# | |
# Test_StoreTypes_KFC_10_4_0: | |
# runs-on: self-hosted | |
# needs: build | |
# env: | |
# SECRET_NAME: "command-config-1040-clean" | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v4 | |
# | |
# - name: list dir | |
# run: ls -la | |
# | |
# - name: Get secret from Azure Key Vault | |
# run: | | |
# . ./examples/auth/akv/akv_auth.sh | |
# | |
# - name: Run tests | |
# run: go test -v ./cmd -run "^Test_StoreType*" | |
# Test_StoreTypes_KFC_10_2_1: | |
# runs-on: self-hosted | |
# needs: build | |
# env: | |
# SECRET_NAME: "command-config-1021-clean" | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v4 | |
# | |
# - name: list dir | |
# run: ls -la | |
# | |
# - name: Get secret from Azure Key Vault | |
# run: | | |
# . ./examples/auth/akv/akv_auth.sh | |
# | |
# - name: Run tests | |
# run: go test -v ./cmd -run "^Test_StoreType*" | |
# Store Tests | |
# Test_StoreTypes_KFC_11_0_0: | |
# runs-on: self-hosted | |
# needs: build | |
# env: | |
# SECRET_NAME: "command-config-1100-clean" | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v4 | |
# | |
# - name: list dir | |
# run: ls -la | |
# | |
# - name: Get secret from Azure Key Vault | |
# run: | | |
# . ./examples/auth/akv/akv_auth.sh | |
# | |
# - name: Run tests | |
# run: go test -v ./cmd -run "^Test_StoreType*" | |
# Test_Stores_KFC_10_4_0: | |
# runs-on: self-hosted | |
# needs: build | |
# env: | |
# SECRET_NAME: "command-config-1040" | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v4 | |
# | |
# - name: list dir | |
# run: ls -la | |
# | |
# - name: Get secret from Azure Key Vault | |
# run: | | |
# . ./examples/auth/akv/akv_auth.sh | |
# | |
# - name: Run tests | |
# run: go test -v ./cmd -run "^Test_Stores*" | |
# Test_Stores_KFC_10_2_1: | |
# runs-on: self-hosted | |
# needs: build | |
# env: | |
# SECRET_NAME: "command-config-1021" | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v4 | |
# | |
# - name: list dir | |
# run: ls -la | |
# | |
# - name: Get secret from Azure Key Vault | |
# run: | | |
# . ./examples/auth/akv/akv_auth.sh | |
# | |
# - name: Run tests | |
# run: go test -v ./cmd -run "^Test_Stores*" | |
# PAM Tests | |
# Test_PAM_KFC_11_0_0: | |
# runs-on: self-hosted | |
# needs: build | |
# env: | |
# SECRET_NAME: "command-config-1100" | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v4 | |
# | |
# - name: list dir | |
# run: ls -la | |
# | |
# - name: Get secret from Azure Key Vault | |
# run: | | |
# . ./examples/auth/akv/akv_auth.sh | |
# | |
# - name: Run tests | |
# run: go test -v ./cmd -run "^Test_PAM*" | |
# Test_PAM_KFC_10_4_0: | |
# runs-on: self-hosted | |
# needs: build | |
# env: | |
# SECRET_NAME: "command-config-1040" | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v4 | |
# | |
# - name: list dir | |
# run: ls -la | |
# | |
# - name: Get secret from Azure Key Vault | |
# run: | | |
# . ./examples/auth/akv/akv_auth.sh | |
# | |
# - name: Run tests | |
# run: go test -v ./cmd -run "^Test_PAM*" | |
Test_PAM_KFC_10_2_1: | |
runs-on: self-hosted | |
needs: build | |
env: | |
SECRET_NAME: "command-config-1021" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: list dir | |
run: ls -la | |
- name: Get secret from Azure Key Vault | |
run: | | |
. ./examples/auth/akv/akv_auth.sh | |
- name: Run tests | |
run: | | |
ls -la | |
ls -la artifacts/pam | |
go test -v ./cmd -run "^Test_PAM*" |