From c07dcc021d11f9f042c4e1d67b9dc095d59c9f2b Mon Sep 17 00:00:00 2001 From: Bernd Schorgers Date: Thu, 7 Dec 2023 20:02:47 +0100 Subject: [PATCH] ci: Add PR validation --- .github/workflows/pr-validate.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/pr-validate.yaml diff --git a/.github/workflows/pr-validate.yaml b/.github/workflows/pr-validate.yaml new file mode 100644 index 00000000..e5b5cfdb --- /dev/null +++ b/.github/workflows/pr-validate.yaml @@ -0,0 +1,27 @@ +--- +name: "Pull Request: Validate" + +on: + pull_request: + branches: + - main + types: + - opened + - synchronize + - reopened + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v3 + + - name: Install Go + uses: actions/setup-go@v4 + with: + go-version: ">=1.20" + cache: true + + - name: Run Go test + run: go test -v ./src/