aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/test.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r--.github/workflows/test.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..21791d3
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,27 @@
+name: test
+
+on: [push, pull_request]
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ with:
+ fetch-depth: 0
+ submodules: recursive
+
+ - name: Install Go
+ uses: actions/setup-go@v3
+ with:
+ go-version: 1.18.x
+
+ - name: Test
+ run: |
+ go test ./... -coverprofile=profile.cov
+
+ - uses: shogo82148/actions-goveralls@v1.6.0
+ with:
+ path-to-profile: profile.cov \ No newline at end of file