From 4ce2a656b8506b3c945ad73b2603d72618815eb4 Mon Sep 17 00:00:00 2001 From: Marvin <127591405+Lokowitz@users.noreply.github.com> Date: Tue, 10 Jun 2025 13:07:08 +0200 Subject: [PATCH 1/8] Create test.yml --- .github/workflows/test.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..09757fe --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,34 @@ +name: Run Tests + +on: + pull_request: + branches: + - main + - dev + +jobs: + test: + 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 + + - name: Test + run: go test + + - name: Build Docker container + run: make build + + - name: Run Docker container + run: make test + + - name: Build native + run: make go-build.release From 1ecffab79a39783b4df6bae29dfd2261f5c6a773 Mon Sep 17 00:00:00 2001 From: Marvin <127591405+Lokowitz@users.noreply.github.com> Date: Tue, 10 Jun 2025 13:08:22 +0200 Subject: [PATCH 2/8] Update test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 09757fe..fc0fc13 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.20' + go-version: '1.23' - name: Build run: go build From 1820c8c0199b7aa54d06e9b9c81c6ada791d363c Mon Sep 17 00:00:00 2001 From: Marvin <127591405+Lokowitz@users.noreply.github.com> Date: Tue, 10 Jun 2025 13:10:48 +0200 Subject: [PATCH 3/8] Update test.yml --- .github/workflows/test.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fc0fc13..a9e7074 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,17 +18,14 @@ jobs: with: go-version: '1.23' - - name: Build + - name: Build go run: go build - - name: Test + - name: Test go run: go test - name: Build Docker container run: make build - - name: Run Docker container - run: make test - - - name: Build native + - name: Build native files run: make go-build.release From 8941604f71b18d8aa5746dd143ea1c6de8767780 Mon Sep 17 00:00:00 2001 From: Marvin <127591405+Lokowitz@users.noreply.github.com> Date: Tue, 10 Jun 2025 13:12:43 +0200 Subject: [PATCH 4/8] Update test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a9e7074..d76ccd2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,4 +28,4 @@ jobs: run: make build - name: Build native files - run: make go-build.release + run: make go-build-release From 38b7f17e58c7d9db5bd5ffcf920e624a1b25c17d Mon Sep 17 00:00:00 2001 From: Marvin <127591405+Lokowitz@users.noreply.github.com> Date: Tue, 10 Jun 2025 13:15:44 +0200 Subject: [PATCH 5/8] Update test.yml --- .github/workflows/test.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d76ccd2..b585cfc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,11 +18,8 @@ jobs: with: go-version: '1.23' - - name: Build go - run: go build - - - name: Test go - run: go test + - name: Download go + run: go mod download - name: Build Docker container run: make build From 52a8aabdb88c767af198a600a7c78bd4c0340314 Mon Sep 17 00:00:00 2001 From: Marvin <127591405+Lokowitz@users.noreply.github.com> Date: Tue, 10 Jun 2025 13:17:33 +0200 Subject: [PATCH 6/8] Update test.yml --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b585cfc..ac03cce 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,8 +18,8 @@ jobs: with: go-version: '1.23' - - name: Download go - run: go mod download + - name: Build go + run: go build - name: Build Docker container run: make build From e053eff879e98d20e8a959d0945dafefdfa59056 Mon Sep 17 00:00:00 2001 From: Marvin <127591405+Lokowitz@users.noreply.github.com> Date: Tue, 10 Jun 2025 13:27:24 +0200 Subject: [PATCH 7/8] Update Makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ab2db3d..54078c4 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ all: build push docker-build-release: @if [ -z "$(tag)" ]; then \ - echo "Error: tag is required. Usage: make build-all tag="; \ + echo "Error: tag is required. Usage: make docker-build-release tag="; \ exit 1; \ fi docker buildx build --platform linux/arm/v7,linux/arm64,linux/amd64 -t fosrl/newt:latest -f Dockerfile --push . From 2e6ab2ba41975a8c96c735b3c5875be4793aaab8 Mon Sep 17 00:00:00 2001 From: Marvin <127591405+Lokowitz@users.noreply.github.com> Date: Tue, 10 Jun 2025 14:00:04 +0200 Subject: [PATCH 8/8] Update test.yml --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ac03cce..6c8ec18 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,8 +21,8 @@ jobs: - name: Build go run: go build - - name: Build Docker container + - name: Build Docker image run: make build - - name: Build native files + - name: Build binaries run: make go-build-release