mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 20:58:14 -05:00
a503f0cf40
* ddns: store configuation in database Co-authored-by: nap0o <144927971+nap0o@users.noreply.github.com> * feat: split domain with soa lookup * switch to libdns interface * ddns: add unit test * ddns: skip TestSplitDomainSOA on ci network is not steady * fix error handling * fix error handling --------- Co-authored-by: nap0o <144927971+nap0o@users.noreply.github.com>
46 lines
877 B
YAML
46 lines
877 B
YAML
name: Run Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- "**.go"
|
|
- "go.mod"
|
|
- "go.sum"
|
|
- "resource/**"
|
|
- ".github/workflows/test.yml"
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
tests:
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
os: [ubuntu, windows, macos]
|
|
|
|
runs-on: ${{ matrix.os }}-latest
|
|
env:
|
|
GO111MODULE: on
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.23.x"
|
|
|
|
- name: Unit test
|
|
run: |
|
|
go test -v ./...
|
|
|
|
- name: Build test
|
|
run: go build -v ./cmd/dashboard
|
|
|
|
- name: Run Gosec Security Scanner
|
|
if: runner.os == 'Linux'
|
|
uses: securego/gosec@master
|
|
with:
|
|
args: --exclude=G104,G402,G115,G203 ./...
|