Files
warewulf/.github/actions/prepare/action.yml
xu yang e5f6fa5a05 run go mod tidy after go mod vendor
Signed-off-by: xu yang <xyang@ciq.com>
2024-06-07 05:57:57 +00:00

36 lines
765 B
YAML

name: 'Prepare Warewulf'
description: 'Prepare environment and Warewulf source code for testing and building'
inputs:
go-version:
description: "go version"
required: true
runs:
using: "composite"
steps:
- name: Update apt
run: sudo apt update
shell: bash
- name: Install gpgme (dependency)
run: sudo apt-get install libgpgme-dev
shell: bash
- name: Setup go ${{ inputs.go-version }}
uses: actions/setup-go@v3
with:
go-version: ${{ inputs.go-version }}
cache: true
- name: Configure Warewulf
run: make config
shell: bash
- name: Prepare vendor directory
run: make vendor
shell: bash
- name: Run go mod tidy
run: make tidy
shell: bash