mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2026-12-01 00:48:55 +00:00
Rewrite one-key installer for flavors and add smoke tests
This commit is contained in:
1 parent
fc0277a93f
commit
7ff76cfbde
5 files changed
+662
-103
No files matched your search
@@ -15,6 +15,8 @@ on:
|
||||
- "**/*.go"
|
||||
- "go.mod"
|
||||
- "go.sum"
|
||||
- "nt_install.sh"
|
||||
- "scripts/test_nt_install.sh"
|
||||
- ".github/workflows/*.yml"
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
@@ -22,6 +24,8 @@ on:
|
||||
- "**/*.go"
|
||||
- "go.mod"
|
||||
- "go.sum"
|
||||
- "nt_install.sh"
|
||||
- "scripts/test_nt_install.sh"
|
||||
- ".github/workflows/*.yml"
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -53,6 +57,14 @@ jobs:
|
||||
sudo go env -w GOTOOLCHAIN=go1.26.0+auto
|
||||
sudo go test -v -covermode=count -coverprofile='coverage.out' ./...
|
||||
|
||||
- name: Smoke test nt_install.sh
|
||||
if: ${{ matrix.os != 'windows-latest' }}
|
||||
shell: bash
|
||||
run: |
|
||||
bash -n nt_install.sh
|
||||
sh -n nt_install.sh
|
||||
bash scripts/test_nt_install.sh
|
||||
|
||||
- name: Test with windows
|
||||
if: ${{ matrix.os == 'windows-latest' }}
|
||||
run: |
|
||||
|
||||
Reference in new issue
Block a user