Skip to content

Commit

Permalink
Test Workflow and delete tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KingLeak95 committed Nov 1, 2023
1 parent cd26bc8 commit 224c348
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 42 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,17 @@ jobs:
- name: Build
run: go build -v ./...

docker:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Build Docker image
run: |
docker build -t todo-list:latest .
- name: Run Docker container
run: |
docker run --rm to-do-list:latest
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module github.com/KingLeak95/todo-list-go
go 1.21.0

require (
github.com/DATA-DOG/go-sqlmock v1.5.0
github.com/gin-gonic/gin v1.9.1
gorm.io/driver/sqlite v1.5.3
gorm.io/gorm v1.25.4
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
github.com/DATA-DOG/go-sqlmock v1.5.0 h1:Shsta01QNfFxHCfpW6YH2STWB0MudeXXEWMr20OEh60=
github.com/DATA-DOG/go-sqlmock v1.5.0/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM=
github.com/bytedance/sonic v1.5.0/go.mod h1:ED5hyg4y6t3/9Ku1R6dU/4KyJ48DZ4jPhfY1O2AihPM=
github.com/bytedance/sonic v1.9.1 h1:6iJ6NqdoxCDr6mbY8h18oSO+cShGSMRGCEo7F2h0x8s=
github.com/bytedance/sonic v1.9.1/go.mod h1:i736AoUSYt75HyZLoJW9ERYxcy6eaN6h4BZXU064P/U=
Expand Down
6 changes: 1 addition & 5 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
package main

import (
"github.com/KingLeak95/todo-list-go/models"
"github.com/gin-gonic/gin"
"net/http"
"github.com/KingLeak95/todo-list-go/models"
)

func createUser(c *gin.Context) {

}

func main() {
r := gin.Default()

Expand Down
34 changes: 0 additions & 34 deletions main_test.go

This file was deleted.

0 comments on commit 224c348

Please sign in to comment.