Feat: Add GitHub Actions Workflow for CI/CD (#21)
Add GitHub Actions Workflow for CI/CD (#21)
This commit is contained in:
parent
8be7e5c197
commit
42b391fe9b
10 changed files with 159 additions and 0 deletions
22
.github/actions/setup-go-and-deps/action.yml
vendored
Normal file
22
.github/actions/setup-go-and-deps/action.yml
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
name: Setup Go and Dependencies
|
||||
description: 'Setup Go and Dependencies'
|
||||
|
||||
inputs:
|
||||
go-version-file:
|
||||
description: 'The path to the go.mod file'
|
||||
required: false
|
||||
default: 'go.mod'
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: ${{ inputs.go-version-file }}
|
||||
|
||||
- name: Install Dependencies
|
||||
shell: bash
|
||||
run: go mod tidy
|
||||
Loading…
Add table
Add a link
Reference in a new issue