-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (38 loc) · 1.1 KB
/
test.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
name: Test
on:
push:
tags-ignore: ["v[0-9]+.[0-9]+.[0-9]+.*", "trigger-push"]
pull_request:
jobs:
test:
strategy:
matrix:
go-version: [ '1.20', '1.17' ]
platform: [ ubuntu-20.04, macos-13, windows-2019 ]
runs-on: ${{ matrix.platform }}
if: always()
steps:
- name: Install Go
uses: actions/setup-go@v5.0.2
with:
go-version: ${{ matrix.go-version }}
- name: Install libgtk-3-dev
if: startsWith(matrix.platform, 'ubuntu')
run: sudo apt-get update -y && sudo apt-get install -y libgtk-3-dev
- name: Install UPX (Linux)
if: startsWith(matrix.platform, 'ubuntu')
run: sudo apt-get update -y && sudo apt-get install -y upx-ucl
- name: Install UPX (Windows)
if: startsWith(matrix.platform, 'windows')
run: choco install upx -y
- name: Checkout repository
uses: actions/checkout@v4.2.1
- name: Build
shell: bash
run: |
make copy-test-files
make
make tools
- name: Test
shell: bash
run: make test