Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Bump github.com/docker/distribution #74

Bump github.com/docker/distribution

Bump github.com/docker/distribution #74

Workflow file for this run

name: Go Tests
on: [push]
jobs:
build:
name: Test
runs-on: ubuntu-latest
steps:
# Checkout your project with git
- name: Checkout
uses: actions/checkout@v2
# Install Go on the VM running the action.
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
# install deps using go install
- name: Install gotestfmt
run: go install github.com/haveyoudebuggedit/gotestfmt/v2/cmd/gotestfmt@v2.3.0
- name: Install Nomad
run: |
wget https://releases.hashicorp.com/nomad/1.4.0-beta.1/nomad_1.4.0-beta.1_linux_amd64.zip
unzip nomad_1.4.0-beta.1_linux_amd64.zip
cp nomad /usr/local/bin
# Run tests with nice formatting. Save the original log in /tmp/gotest.log
- name: Run tests
run: |
set -euo pipefail
cd v1
go test -json -v ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
# Upload the original go test log as an artifact for later review.
- name: Upload test log
uses: actions/upload-artifact@v2
if: ${{ !env.ACT }}
with:
name: test-log
path: /tmp/gotest.log
if-no-files-found: error