Skip to content

update go.mod

update go.mod #71

Workflow file for this run

name: Bump & Test
on:
workflow_dispatch:
push:
jobs:
bump:
if: "! contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
outputs:
new_tag: ${{ steps.tag_version.outputs.new_tag }}
new_version: ${{ steps.tag_version.outputs.new_version }}
steps:
- uses: actions/checkout@v2
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ github.event.inputs.tag }}
test:
if: "! (contains(github.event.head_commit.message, '[skip ci]') || contains(github.event.head_commit.message, '[no test]') || contains(github.event.head_commit.message, '[bump]'))"
needs: [bump]
runs-on: 'ubuntu-latest'
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Set up GoLang
uses: actions/setup-go@v3
with:
go-version: "1.20"
cache: true
- name: Run Go Tests
run: |
bash scripts/prep.gomod.sh
go mod tidy
go build .
cd server
go test -run TestServer