From 5513d54c4ae3fa3a31264b208519b98137a3beff Mon Sep 17 00:00:00 2001 From: Oscar Ferrer Date: Mon, 30 Sep 2024 15:07:12 +0200 Subject: [PATCH] Testing GHA Change-Id: Ic347bac3e22d3f610b796d4be58c81bc4c3131b8 --- .github/workflows/test.yaml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..da00940 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,36 @@ +name: run tests + +on: + pull_request: + branches: [ "*" ] + +permissions: + id-token: write + +jobs: + + testGo: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Golang caches + uses: actions/cache@v4 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-golang- + + - name: Setup Golang + uses: actions/setup-go@v5 + with: + go-version-file: './go.mod' + + - name: run go tests + env: + RUN_INTEGRATION_TESTS: true + run: | + go test -v ./...