From 7f9e07a7b81faeced797141460c530dd44311dad Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 24 Sep 2026 17:00:30 +0200 Subject: [PATCH 1/2] ci: job run-tests --- .github/workflows/workflow.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/workflow.yml diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 0000000..437b11a --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,22 @@ +name: main-workflow +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + run-tests: + runs-on: ubuntu-latest + steps: + - name: Check out source code + uses: actions/checkout@v7 + - name: Set up Go + uses: actions/setup-go@v7 + with: + go-version: stable + - name: Print Go version + run: go version + - name: Run unit tests + run: go test -v ./... From 4db717b0b3d37100f7c3d27f675fa004b2ec30cd Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 24 Sep 2026 17:19:37 +0200 Subject: [PATCH 2/2] Rompo algo a proposito --- foobar/foobar.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foobar/foobar.go b/foobar/foobar.go index 1416c8e..bb642bd 100644 --- a/foobar/foobar.go +++ b/foobar/foobar.go @@ -20,7 +20,7 @@ func Sequence(length int) ([]string, error) { switch { case n%3 == 0 && n%5 == 0: seq[i] = "foobar" - case n%5 == 0: + case n%7 == 0: seq[i] = "bar" case n%3 == 0: seq[i] = "foo"