From 26e2c5f084a74f526a32980bde2e46c07b7e1730 Mon Sep 17 00:00:00 2001 From: Konstantin Pereiaslov Date: Mon, 23 Sep 2024 06:44:37 +0300 Subject: [PATCH 1/9] Create go.yml --- .github/workflows/go.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..0b443f3 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,28 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./... From 8c159af9fe714d74b3a2427182d9b14854534cb1 Mon Sep 17 00:00:00 2001 From: Konstantin Pereiaslov Date: Mon, 23 Sep 2024 06:47:28 +0300 Subject: [PATCH 2/9] Update go.yml --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0b443f3..595c43b 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -25,4 +25,4 @@ jobs: run: go build -v ./... - name: Test - run: go test -v ./... + run: mkdir logs && go test -v ./... From 869dae65ae2e752d69449bd700a5b0235d75af80 Mon Sep 17 00:00:00 2001 From: Konstantin Pereiaslov Date: Mon, 23 Sep 2024 06:48:01 +0300 Subject: [PATCH 3/9] Update go.yml --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 595c43b..2bfef97 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -25,4 +25,4 @@ jobs: run: go build -v ./... - name: Test - run: mkdir logs && go test -v ./... + run: mkdir logs && pwd && go test -v ./... From e050f2f01aae5ac31f6cf07449128dbf11416a65 Mon Sep 17 00:00:00 2001 From: Konstantin Pereiaslov Date: Mon, 23 Sep 2024 06:49:46 +0300 Subject: [PATCH 4/9] Update go.yml --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 2bfef97..6e5979d 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -22,7 +22,7 @@ jobs: go-version: '1.20' - name: Build - run: go build -v ./... + run: go build -v - name: Test run: mkdir logs && pwd && go test -v ./... From b78700785cbeada97d6f44a645de2a189b840a3a Mon Sep 17 00:00:00 2001 From: Konstantin Pereiaslov Date: Mon, 23 Sep 2024 06:49:59 +0300 Subject: [PATCH 5/9] Update go.yml --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 6e5979d..bd499e5 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -25,4 +25,4 @@ jobs: run: go build -v - name: Test - run: mkdir logs && pwd && go test -v ./... + run: mkdir logs && go test -v ./... From 6e7384fde0bc7a20950531f53edba0932b4a33a8 Mon Sep 17 00:00:00 2001 From: Konstantin Pereiaslov Date: Mon, 23 Sep 2024 06:50:33 +0300 Subject: [PATCH 6/9] Update go.yml --- .github/workflows/go.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index bd499e5..8ef7237 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -24,5 +24,8 @@ jobs: - name: Build run: go build -v - - name: Test - run: mkdir logs && go test -v ./... + - name: Create logs directory + run: mkdir logs + + - name: Run Tests + run: go test -v ./... From 63d32550d432da7ca6660c233a77959e5fd06765 Mon Sep 17 00:00:00 2001 From: Konstantin Pereiaslov Date: Mon, 23 Sep 2024 06:52:40 +0300 Subject: [PATCH 7/9] Update go.yml --- .github/workflows/go.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8ef7237..4ee78d7 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -29,3 +29,10 @@ jobs: - name: Run Tests run: go test -v ./... + + - name: Archive logs + uses: actions/upload-artifact@v4 + with: + name: logs + path: | + logs From 000f224d2d11e12cd0a6ef3543f10912b31d040f Mon Sep 17 00:00:00 2001 From: Konstantin Pereiaslov Date: Mon, 23 Sep 2024 06:56:04 +0300 Subject: [PATCH 8/9] Update go.yml --- .github/workflows/go.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 4ee78d7..b6d0e95 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -32,6 +32,7 @@ jobs: - name: Archive logs uses: actions/upload-artifact@v4 + if: always() with: name: logs path: | From 76eb412376c0589a5a408eeadb69c86e80e89b9e Mon Sep 17 00:00:00 2001 From: Konstantin Pereiaslov Date: Mon, 23 Sep 2024 06:58:50 +0300 Subject: [PATCH 9/9] Update go.yml --- .github/workflows/go.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b6d0e95..ab1bfb0 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -27,6 +27,9 @@ jobs: - name: Create logs directory run: mkdir logs + - name: Build test-server + run: make build-test-server + - name: Run Tests run: go test -v ./...