Skip to content

build(deps): bump golang.org/x/crypto from 0.19.0 to 0.31.0 (#83) #187

build(deps): bump golang.org/x/crypto from 0.19.0 to 0.31.0 (#83)

build(deps): bump golang.org/x/crypto from 0.19.0 to 0.31.0 (#83) #187

Workflow file for this run

name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
services:
vault:
image: hashicorp/vault:1.15
env:
VAULT_DEV_ROOT_TOKEN_ID: token
VAULT_DEV_LISTEN_ADDRESS: 0.0.0.0:8200
VAULT_TOKEN: token
VAULT_ADDR: http://127.0.0.1:8200
options: >-
--cap-add=IPC_LOCK
--health-cmd "vault status"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 8200:8200
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
- name: Display Go version
run: go version
- name: Build
run: go build -v ./cmd/vht
- name: Test
run: |
export VAULT_ADDR="http://$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -q)):8200"
go test -cover -coverprofile=coverage.out -v ./...
env:
VAULT_TOKEN: token
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./coverage.out
flags: unittests