summaryrefslogtreecommitdiff
path: root/.github/workflows/test.yaml
diff options
context:
space:
mode:
authorPhilipp Tanlak <philipp.tanlak@gmail.com>2023-09-18 21:30:36 +0200
committerPhilipp Tanlak <philipp.tanlak@gmail.com>2023-09-18 21:33:58 +0200
commitbecbf4bf3981a3f8d9a57864942ca1468e23a6b0 (patch)
treefec9c619884c6b0e9add39bef8abd4e4e88b3bde /.github/workflows/test.yaml
parent49bde10c0b4d1c296960fbe94e30672da42df0e5 (diff)
Run tests on push and pull to master
Diffstat (limited to '.github/workflows/test.yaml')
-rw-r--r--.github/workflows/test.yaml23
1 files changed, 23 insertions, 0 deletions
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 ./...