mirror of
https://github.com/nezhahq/nezha.git
synced 2025-02-08 12:38:13 -05:00
✅ update ci
This commit is contained in:
parent
e40026f6cc
commit
bb55c3354a
16
.github/workflows/dashboard.yml
vendored
16
.github/workflows/dashboard.yml
vendored
@ -1,17 +1,11 @@
|
|||||||
name: Dashboard image
|
name: Dashboard image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_run:
|
||||||
branches:
|
workflows: ["Run Tests"]
|
||||||
- "master"
|
branches: [master]
|
||||||
paths-ignore:
|
types:
|
||||||
- "cmd/playground/**"
|
- completed
|
||||||
- "cmd/agent/**"
|
|
||||||
- "script/**"
|
|
||||||
- "*.md"
|
|
||||||
- ".*"
|
|
||||||
- ".github/workflows/agent.yml"
|
|
||||||
- ".github/workflows/test.yml"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
24
.github/workflows/test-on-pr.yml
vendored
Normal file
24
.github/workflows/test-on-pr.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
name: Run Tests on PR
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
GO111MODULE: on
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Unit test
|
||||||
|
run: |
|
||||||
|
go test -v ./...
|
||||||
|
- name: Build test
|
||||||
|
run: |
|
||||||
|
go build cmd/dashboard/main.go
|
||||||
|
go build cmd/agent/main.go
|
||||||
|
- name: Run Gosec Security Scanner
|
||||||
|
uses: securego/gosec@master
|
||||||
|
with:
|
||||||
|
args: -exclude=G104 ./...
|
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@ -1,11 +1,9 @@
|
|||||||
name: Run Test
|
name: Run Tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Loading…
Reference in New Issue
Block a user