]> git.lizzy.rs Git - hydra-dragonfire.git/blobdiff - .github/workflows/test.yml
docker build and workflow
[hydra-dragonfire.git] / .github / workflows / test.yml
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644 (file)
index 0000000..21791d3
--- /dev/null
@@ -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