Skip to content

Add artifacts manifest (automatically generated) #809

Add artifacts manifest (automatically generated)

Add artifacts manifest (automatically generated) #809

name: test-integration
on:
# Allow manual runs
workflow_dispatch:
push:
branches:
- "main"
- "release/**"
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
pull_request:
branches:
- "main"
- "release/**"
jobs:
test-functional:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
with:
go-version: '^1.17'
# set up PATH env based on OS
- name: add bin dir (unix)
if: runner.os != 'Windows'
run: echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
- name: add bin dir (windows)
if: runner.os == 'Windows'
run: echo "${env:GITHUB_WORKSPACE}\bin" | Out-File -FilePath ${env:GITHUB_PATH} -Encoding utf8 -Append
# set up our binaries
- name: build binary to test
run: |
mkdir -p bin
go build -o bin
which hcdiag
hcdiag -version
- name: install softwares
run: |
go install github.com/gulducat/hashi-bin@main
cd bin
hashi-bin download consul latest
hashi-bin download nomad latest
hashi-bin download vault latest
- name: check versions
run: |
consul version
nomad version
vault version
# ready to go, run them tests
- name: run functional tests
run: go test -v ./tests/integration -tags=functional