From 3ef5350a86b71ae39755124d89d73ddd8f982b31 Mon Sep 17 00:00:00 2001 From: Mario Macias <mmaciasl@redhat.com> Date: Thu, 17 Mar 2022 10:18:08 +0100 Subject: [PATCH] Create pull_request.yml --- .github/workflows/pull_request.yml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/pull_request.yml diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 00000000..c1d88a49 --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,31 @@ +name: Pull request checks + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + name: test + runs-on: ubuntu-latest + strategy: + matrix: + go: ['1.17'] + steps: + - uses: actions/checkout@v2 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.17 + - name: Install make + run: sudo apt -y install make + - name: Run verification and tests + run: make fmt lint test + - name: Report coverage + uses: codecov/codecov-action@v2.1.0 + with: + files: ./cover.out + flags: unittests + fail_ci_if_error: true -- GitLab