forked from fyne-io/fyne
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (57 loc) · 1.51 KB
/
platform_tests.yml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Platform Tests
on: [push, pull_request]
permissions:
contents: read
jobs:
platform_tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
go-version: ['1.19.x', '1.23.x']
os: [ubuntu-latest, macos-latest]
include:
- os: ubuntu-latest
runner: xvfb-run
- os: macos-latest
tags: no_glfw
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: WillAbides/setup-go-faster@v1
with:
go-version: ${{ matrix.go-version }}
- name: Get dependencies
run: >-
sudo apt-get update &&
sudo apt-get install
bc
gcc
libgl1-mesa-dev
libwayland-dev
libx11-dev
libxkbcommon-dev
xorg-dev
xvfb
if: ${{ runner.os == 'Linux' }}
- name: Tests
run: ${{ matrix.runner }} go test "-test.benchtime" 10ms -tags "${{ matrix.tags }}" ./...
- name: Wayland Tests
run: go test -tags no_glfw,ci,wayland ./...
if: ${{ runner.os == 'Linux' }}
windows_tests:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
go-version: ['1.20.x', '1.22.x']
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: WillAbides/setup-go-faster@v1
with:
go-version: ${{ matrix.go-version }}
- name: Tests
run: ${{ matrix.runner }} go test "-test.benchtime" 10ms -tags no_glfw ./...