From 7ab91214210abc292d41f913150b52167aef3725 Mon Sep 17 00:00:00 2001 From: yassinebenaid Date: Thu, 6 Jun 2024 14:05:56 +0100 Subject: [PATCH 1/3] Added Tests github actions workflow --- .github/workflows/test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..77cfe2f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +name: Tests + +on: + pull_request: + types: [opened, reopened] + branches: [master] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: "1.21" + + - name: Test + run: go test From aad79993ad38757a20fd5a6da932a216a22ed23d Mon Sep 17 00:00:00 2001 From: yassinebenaid Date: Thu, 6 Jun 2024 14:11:50 +0100 Subject: [PATCH 2/3] 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 77cfe2f..af3c055 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: "1.21" From e7660332a478194ae3dbc7443b818c7467fb9e18 Mon Sep 17 00:00:00 2001 From: yassinebenaid Date: Thu, 6 Jun 2024 14:22:42 +0100 Subject: [PATCH 3/3] Update test.yml --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index af3c055..3d7b6e6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,6 +18,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: "1.21" + cache: false - name: Test run: go test