aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/test.yml
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2024-01-06 11:23:40 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2024-01-06 11:23:40 -0500
commit0bffeb825aab8429f41be7c8f1872e3d15d1db0b (patch)
tree379d9fbf1b45741fa8994f02a35d3cf759be1ffe /.github/workflows/test.yml
parentAdd database integration tests (diff)
downloadcli-0bffeb825aab8429f41be7c8f1872e3d15d1db0b.zip
Add workflow to run tests
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r--.github/workflows/test.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..a2b2106
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,19 @@
+name: Test
+
+on:
+ push:
+ branches: ["main"]
+ pull_request:
+ branches: ["main"]
+
+jobs:
+
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout Source Code
+ uses: actions/checkout@v3
+ - name: Setup Docker Compose Stack
+ run: docker compose up --detach
+ - name: Run Tests
+ run: docker exec bolt go test -cover ./...