mirror of
https://github.com/versity/versitygw.git
synced 2026-09-23 16:34:18 +00:00
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 6 to 7. - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/setup-go dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
name: IAM functional tests
|
|
permissions:
|
|
contents: read
|
|
on: pull_request
|
|
|
|
jobs:
|
|
build:
|
|
name: RunIAMTests
|
|
runs-on: ubuntu-latest
|
|
services:
|
|
vault:
|
|
image: hashicorp/vault:1.21.4@sha256:6c77f568e6b6310d5bc68befb5711b9215c574de7da489e7c24332581176888b
|
|
env:
|
|
VAULT_ADDR: http://127.0.0.1:8200
|
|
VAULT_DEV_LISTEN_ADDRESS: 0.0.0.0:8200
|
|
VAULT_DEV_ROOT_TOKEN_ID: iam-ci-root
|
|
ports:
|
|
- 8200:8200
|
|
options: >-
|
|
--cap-add=IPC_LOCK
|
|
--health-cmd "vault status"
|
|
--health-interval 2s
|
|
--health-timeout 2s
|
|
--health-retries 15
|
|
steps:
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v7
|
|
with:
|
|
go-version: 'stable'
|
|
id: go
|
|
|
|
- name: Get Dependencies
|
|
run: |
|
|
go mod download
|
|
|
|
- name: Build and Run
|
|
env:
|
|
VAULT_ADDR: http://127.0.0.1:8200
|
|
VAULT_TOKEN: iam-ci-root
|
|
run: |
|
|
make testbin
|
|
./runiamtests.sh
|
|
|
|
- name: Coverage Report
|
|
run: |
|
|
go tool covdata percent -i=/tmp/iam.covdata,/tmp/iam.https.covdata,/tmp/iam.vault.covdata
|