Skip to content

Commit

Permalink
Update go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteWise authored Nov 26, 2023
1 parent 1edbdf2 commit 85cd170
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,35 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up Docker with Debian
uses: addnab/docker-run-action@v3
with:
image: debian:latest
options: --workdir /github/workspace

- name: Install Go
run: |
apt-get update
apt-get install -y golang-go
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Install Dependencies
run: go mod download

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...

- name: Run with Hot-Reload
run: |
# Assuming you are using a tool like 'air' for hot-reloading
# Install 'air' or similar tool if not already installed
# go get -u github.com/cosmtrek/air
air

0 comments on commit 85cd170

Please sign in to comment.