diff options
| author | Raúl Benencia <id@rbenencia.name> | 2026-06-05 17:19:02 -0300 |
|---|---|---|
| committer | Raul Benencia <46945030+raul-te@users.noreply.github.com> | 2026-06-05 17:32:24 -0300 |
| commit | afb81c292e8edd46c42f9d4c308ac14516a34bd3 (patch) | |
| tree | 7a78c07e1795d043992126d299414b5da384031d | |
| parent | 17b1e22a87f8fbdf90b052070fbf704a6729ed60 (diff) | |
Add CI workflow to run tests on PRs and master
| -rw-r--r-- | .github/workflows/test.yml | 44 |
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 |
