From becbf4bf3981a3f8d9a57864942ca1468e23a6b0 Mon Sep 17 00:00:00 2001 From: Philipp Tanlak Date: Mon, 18 Sep 2023 21:30:36 +0200 Subject: Run tests on push and pull to master --- .github/workflows/test.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/test.yaml (limited to '.github') diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..cdc3248 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,23 @@ +name: Test + +on: + push: + branches: ["master"] + pull_request: + branches: ["master"] + +jobs: + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + + - name: Install dependencies + run: go get . + + - name: Test + run: go test -v ./... -- cgit v1.2.3