From afb81c292e8edd46c42f9d4c308ac14516a34bd3 Mon Sep 17 00:00:00 2001 From: Raúl Benencia Date: Fri, 5 Jun 2026 17:19:02 -0300 Subject: Add CI workflow to run tests on PRs and master --- .github/workflows/test.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/test.yml 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 -- cgit v1.2.3