-
Notifications
You must be signed in to change notification settings - Fork 26
51 lines (41 loc) · 1.02 KB
/
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
name: Tests
on:
push:
branches:
- master
pull_request:
jobs:
build-ui:
uses: ./.github/workflows/build-ui.yml
tests:
name: Tests
needs: build-ui
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: stable
cache: true
check-latest: true
- name: Add python dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Download UI file
uses: actions/download-artifact@v4
with:
name: ui
- name: Move UI file
run: mv index.html internal/ui/index.html
- name: Run tests
run: go test -v -tags embed ./...
- name: Run integration tests
run: python scripts/tests.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}