Skip to content

build(deps): bump github.com/shoenig/test from 1.8.2 to 1.11.0 (#480) #569

build(deps): bump github.com/shoenig/test from 1.8.2 to 1.11.0 (#480)

build(deps): bump github.com/shoenig/test from 1.8.2 to 1.11.0 (#480) #569

Workflow file for this run

name: Test
on:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Read Go version
id: go-version
run: echo "version=$(cat ./.go-version)" >> $GITHUB_OUTPUT
- name: Install Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ steps.go-version.outputs.version }}
- name: Run go vet
run: make vet
- name: Install vault, nomad, consul
env:
NOMAD_LICENSE: ${{ secrets.NOMAD_LICENSE }}
run: |
./scripts/getnomad.sh
./scripts/getvault.sh
./scripts/getconsul.sh
- name: Start nomad
env:
NOMAD_LICENSE: ${{ secrets.NOMAD_LICENSE }}
run: ./scripts/start-nomad.sh
- name: Run acceptance tests
run: NOMAD_TOKEN=${{ env.NOMAD_TOKEN }} make testacc
env:
NOMAD_TOKEN: 00000000-0000-0000-0000-000000000000
- name: Stop nomad
if: always()
run: ./scripts/stop-nomad.sh
- name: Make Nomad data dir and log file readable
if: always()
run: |
sudo chmod -R 777 /tmp/nomad
sudo chmod 666 /tmp/nomad.log
# - name: Upload logs
# uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
# if: always()
# with:
# name: logs
# path: |
# /tmp/consul.log
# /tmp/nomad.log
# /tmp/vault.log
# /tmp/nomad/data/**/alloc/logs/plugin*
# !/tmp/nomad/data/**/alloc/logs/*.fifo
# if-no-files-found: warn
# retention-days: 3