File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242 with :
4343 context : ./server
4444 platforms : linux/arm64
45+
46+ server-tests :
47+ name : Server tests
48+ runs-on : ubuntu-latest
49+ steps :
50+ - uses : actions/checkout@v4
51+ with :
52+ fetch-depth : 0
53+
54+ - name : Set up Go
55+ uses : actions/setup-go@v5
56+ with :
57+ go-version-file : " server/go.mod"
58+ cache : true
59+
60+ - name : Cache apt packages
61+ uses : awalsh128/cache-apt-pkgs-action@v1
62+ with :
63+ packages : >
64+ libgstreamer1.0-dev
65+ libgstreamer-plugins-base1.0-dev
66+ libgtk-3-dev
67+ libx11-dev
68+ libxrandr-dev
69+ libxtst-dev
70+ libxfixes-dev
71+ libxcvt-dev
72+ pkg-config
73+ version : ${{ runner.os }}-ubuntu-24.04
74+
75+ - name : Install system dependencies
76+ run : |
77+ sudo apt-get update
78+ sudo apt-get install -y \
79+ libgstreamer1.0-dev \
80+ libgstreamer-plugins-base1.0-dev \
81+ libgtk-3-dev \
82+ libx11-dev \
83+ libxrandr-dev \
84+ libxtst-dev \
85+ libxfixes-dev \
86+ libxcvt-dev \
87+ pkg-config
88+
89+ - name : Cache Go modules
90+ uses : actions/cache@v4
91+ with :
92+ path : |
93+ ~/.cache/go-build
94+ ~/go/pkg/mod
95+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
96+ restore-keys : ${{ runner.os }}-go-
97+
98+ - name : Run tests
99+ working-directory : server
100+ run : go test ./... -v
You can’t perform that action at this time.
0 commit comments