Skip to content

Commit

Permalink
Testing GHA
Browse files Browse the repository at this point in the history
Change-Id: Ic347bac3e22d3f610b796d4be58c81bc4c3131b8
  • Loading branch information
zonzamas committed Sep 30, 2024
1 parent 6199c2f commit e33a778
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -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 ./...

0 comments on commit e33a778

Please sign in to comment.