Browse Source

tests require gui libs

Matthew R Kasun 2 years ago
parent
commit
e57ed27dbe
1 changed files with 5 additions and 3 deletions
  1. 5 3
      .github/workflows/test.yml

+ 5 - 3
.github/workflows/test.yml

@@ -80,9 +80,11 @@ jobs:
           go-version: 1.19
           go-version: 1.19
       - name: run tests
       - name: run tests
         run: |
         run: |
-            go test -p 1 ./... -v
-            go install honnef.co/go/tools/cmd/staticcheck@latest
-            { ~/go/bin/staticcheck  -tags=ee ./... ; }
+          apt update
+          sudo apt-get install -y gcc libgl1-mesa-dev xorg-dev
+          go test -p 1 ./... -v
+          go install honnef.co/go/tools/cmd/staticcheck@latest
+          { ~/go/bin/staticcheck  -tags=ee ./... ; }
         env:
         env:
           DATABASE: sqlite
           DATABASE: sqlite
           CLIENT_MODE: "off"
           CLIENT_MODE: "off"