2021-07-23 11:00:07 +02:00
|
|
|
name: Test Unit
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
env:
|
2024-02-07 17:14:07 +01:00
|
|
|
GO_VERSION: '1.22'
|
2021-07-23 11:00:07 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
test-unit:
|
2024-04-22 17:04:05 +02:00
|
|
|
runs-on: ubuntu-latest
|
2021-07-23 11:00:07 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Check out code
|
2024-01-09 17:00:07 +01:00
|
|
|
uses: actions/checkout@v4
|
2021-07-23 11:00:07 +02:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
2024-01-09 17:00:07 +01:00
|
|
|
- name: Set up Go ${{ env.GO_VERSION }}
|
|
|
|
uses: actions/setup-go@v5
|
2021-07-23 11:00:07 +02:00
|
|
|
with:
|
2024-01-09 17:00:07 +01:00
|
|
|
go-version: ${{ env.GO_VERSION }}
|
2021-07-23 11:00:07 +02:00
|
|
|
|
2021-09-15 10:36:14 +02:00
|
|
|
- name: Avoid generating webui
|
2022-02-18 15:44:08 +01:00
|
|
|
run: touch webui/static/index.html
|
2021-07-23 11:00:07 +02:00
|
|
|
|
|
|
|
- name: Tests
|
|
|
|
run: make test-unit
|