From 55816f3c407b6cc38e51af4a0d414ec352f5ced8 Mon Sep 17 00:00:00 2001 From: Mohanson Date: Thu, 17 Aug 2023 20:32:46 +0800 Subject: [PATCH] Add github actions --- .github/workflows/develop.yml | 16 ++++++++++++++++ go.mod | 2 +- protocol/ashe/engine_test.go | 2 +- protocol/baboon/engine_test.go | 2 +- protocol/czar/engine_test.go | 2 +- protocol/dahlia/engine_test.go | 2 +- 6 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/develop.yml diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml new file mode 100644 index 0000000..290d149 --- /dev/null +++ b/.github/workflows/develop.yml @@ -0,0 +1,16 @@ +name: develop + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: '1.21' + - name: Make + run: ./cmd/develop.sh + - name: Test + run: go test -v -p 1 ./... diff --git a/go.mod b/go.mod index 87a1746..e9ed755 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/mohanson/daze -go 1.20 +go 1.21 require ( github.com/godump/doa v0.1.3 diff --git a/protocol/ashe/engine_test.go b/protocol/ashe/engine_test.go index 2eafc8d..b8e2bd6 100644 --- a/protocol/ashe/engine_test.go +++ b/protocol/ashe/engine_test.go @@ -10,7 +10,7 @@ import ( const ( EchoServerListenOn = "127.0.0.1:28080" - DazeServerListenOn = "127.0.0.1:21081" + DazeServerListenOn = "127.0.0.1:28081" Password = "password" ) diff --git a/protocol/baboon/engine_test.go b/protocol/baboon/engine_test.go index c1784ab..76f0f5c 100644 --- a/protocol/baboon/engine_test.go +++ b/protocol/baboon/engine_test.go @@ -12,7 +12,7 @@ import ( const ( EchoServerListenOn = "127.0.0.1:28080" - DazeServerListenOn = "127.0.0.1:21081" + DazeServerListenOn = "127.0.0.1:28081" Password = "password" ) diff --git a/protocol/czar/engine_test.go b/protocol/czar/engine_test.go index b85c8d2..dd88a44 100644 --- a/protocol/czar/engine_test.go +++ b/protocol/czar/engine_test.go @@ -10,7 +10,7 @@ import ( const ( EchoServerListenOn = "127.0.0.1:28080" - DazeServerListenOn = "127.0.0.1:21081" + DazeServerListenOn = "127.0.0.1:28081" Password = "password" ) diff --git a/protocol/dahlia/engine_test.go b/protocol/dahlia/engine_test.go index a62043a..8660995 100644 --- a/protocol/dahlia/engine_test.go +++ b/protocol/dahlia/engine_test.go @@ -10,7 +10,7 @@ import ( const ( EchoServerListenOn = "127.0.0.1:28080" - DazeServerListenOn = "127.0.0.1:21081" + DazeServerListenOn = "127.0.0.1:28081" DazeClientListenOn = "127.0.0.1:21082" Password = "password" )