Added linux-arm64 and supplied VAULT_ADDR to suppress warnings
This commit is contained in:
@@ -12,7 +12,7 @@ jobs:
|
||||
tests:
|
||||
strategy:
|
||||
matrix:
|
||||
arch: ['ubuntu-latest', 'darwin-amd64']
|
||||
arch: ['linux-amd64', 'linux-arm64', 'darwin-amd64']
|
||||
runs-on: ${{ matrix.arch }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -24,7 +24,7 @@ jobs:
|
||||
go-version-file: 'go.mod'
|
||||
|
||||
- name: Setup Hashicorp Vault
|
||||
if: matrix.arch == 'ubuntu-latest'
|
||||
if: matrix.arch =~ '^linux-'
|
||||
run: |
|
||||
wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(grep -oP '(?<=UBUNTU_CODENAME=).*' /etc/os-release || lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
|
||||
@@ -32,6 +32,7 @@ jobs:
|
||||
|
||||
- name: Start Vault in background
|
||||
env:
|
||||
VAULT_ADDR: "https://127.0.0.1:8200"
|
||||
VAULT_SKIP_VERIFY: "true"
|
||||
run: |
|
||||
# Start Vault server in background
|
||||
@@ -54,6 +55,7 @@ jobs:
|
||||
env:
|
||||
TEST_VAULT_KEY: ${{ vars.TEST_VAULT_KEY }}
|
||||
TEST_VAULT_VALUE: ${{ vars.TEST_VAULT_VALUE }}
|
||||
VAULT_ADDR: "https://127.0.0.1:8200"
|
||||
VAULT_TOKEN: root
|
||||
VAULT_SKIP_VERIFY: "true"
|
||||
run: |
|
||||
@@ -73,6 +75,7 @@ jobs:
|
||||
env:
|
||||
TEST_VAULT_KEY: ${{ vars.TEST_VAULT_KEY }}
|
||||
TEST_VAULT_VALUE: ${{ vars.TEST_VAULT_VALUE }}
|
||||
VAULT_ADDR: "https://127.0.0.1:8200"
|
||||
VAULT_TOKEN: root
|
||||
VAULT_SKIP_VERIFY: "true"
|
||||
run: |
|
||||
|
Reference in New Issue
Block a user