test: add integration tests #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- 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 |