aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/test.yml
blob: 5e886dd77ced4bbe0deb4cfc386487e8f2db4b25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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