From a4aa8af9b0d93053f371f1a0a69c54a865deb42e Mon Sep 17 00:00:00 2001 From: Bharath Date: Wed, 15 May 2024 22:06:30 +0530 Subject: [PATCH] add github workflow to run tests --- .github/workflows/run-tests.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/run-tests.yml diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 000000000..b7eca2212 --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,22 @@ +name: Run tests + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + workflow_dispatch: + +jobs: + build: + runs-on: self-hosted + steps: + - uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: 1.21.4 + - name: Run tests + run: go test -short ./... + env: + GOOS: linux \ No newline at end of file