Skip to content

Merge remote-tracking branch 'origin/main' into VAULT-24346/use-vault… #2333

Merge remote-tracking branch 'origin/main' into VAULT-24346/use-vault…

Merge remote-tracking branch 'origin/main' into VAULT-24346/use-vault… #2333

Workflow file for this run

name: Tests
on: [push, workflow_dispatch]
env:
# used by scripts that fetch build tools from GH
GH_GET_RETRIES: 5
jobs:
fmtcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: .go-version
- run: |
make check-fmt
tf-fmtcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: .go-version
- run: |
make check-tffmt
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: .go-version
- run: make ci-test
unitTest:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: .go-version
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: '16'
- run: npm install -g bats@${BATS_VERSION}
shell: bash
env:
BATS_VERSION: '1.10.0'
- run: bats -v
shell: bash
- run: make unit-test