aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/test.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..5e886dd
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,44 @@
+name: Test
+
+on:
+ pull_request:
+ push:
+ branches: [master]
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - uses: actions/setup-go@v5
+ with:
+ go-version-file: go.mod
+
+ - name: Unit tests
+ run: go test ./...
+
+ - uses: actions/setup-python@v5
+ with:
+ python-version: "3.x"
+
+ - name: Install integration test dependencies
+ run: pip install pytest requests python-dateutil
+
+ - uses: actions/setup-node@v4
+ with:
+ node-version: "22"
+
+ - uses: browser-actions/setup-chrome@v1
+ id: setup-chrome
+ with:
+ browser: chromium
+
+ - name: Expose chromium binary
+ run: sudo ln -sf "${{ steps.setup-chrome.outputs.chrome-path }}" /usr/local/bin/chromium
+
+ - name: Build
+ run: go build -o shoelaces
+
+ - name: Integration tests
+ run: ./test/integ-test/integ_test.py -vv
nihil fit ex nihilo