From 6dd8b92c47c6fdf97ab107eb33f62eaa48cea260 Mon Sep 17 00:00:00 2001 From: Daniel Molina <152324491+draco8492@users.noreply.github.com> Date: Thu, 24 Sep 2026 16:55:26 +0200 Subject: [PATCH 1/2] Add run-tests job to workflow --- .github/workflows/workflow.yml | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 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..b735a80 --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,38 @@ +name: main-worklfow + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + # Run all unit tests. + run-tests: + runs-on: ubuntu-latest + steps: + # Check out the pull request's source code. + - name: Check out source code + uses: actions/checkout@v3 + +steps: + # Check out the pull request's source code. + - name: Check out source code + uses: actions/checkout@v2 + + # Install Go. + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: "^1.14" # The Go version to download and use. + + - name: Print Go version + run: go version + + # Run unit tests. + - name: Run unit tests + run: go test -v ./... + + \ No newline at end of file From fae85e906217bd2c0443e76eb519189162f7c2e3 Mon Sep 17 00:00:00 2001 From: Daniel Molina <152324491+draco8492@users.noreply.github.com> Date: Thu, 24 Sep 2026 16:58:43 +0200 Subject: [PATCH 2/2] Add run-tests job to workflow --- .github/workflows/workflow.yml | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index b735a80..1e3cfbe 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -1,5 +1,7 @@ name: main-worklfow +env: {} + on: push: branches: @@ -17,22 +19,14 @@ jobs: - name: Check out source code uses: actions/checkout@v3 -steps: - # Check out the pull request's source code. - - name: Check out source code - uses: actions/checkout@v2 - - # Install Go. - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: "^1.14" # The Go version to download and use. - - - name: Print Go version - run: go version - - # Run unit tests. - - name: Run unit tests - run: go test -v ./... + # Install Go. + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: "^1.14" # The Go version to download and use. + - name: Print Go version + run: go version - \ No newline at end of file + # Run unit tests. + - name: Run unit tests + run: go test -v ./... \ No newline at end of file