mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
update workflows
This commit is contained in:
2
.github/workflows/codeql-analysis.yml
vendored
2
.github/workflows/codeql-analysis.yml
vendored
@@ -38,7 +38,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
|
||||
10
.github/workflows/dashboard.yml
vendored
10
.github/workflows/dashboard.yml
vendored
@@ -13,7 +13,7 @@ jobs:
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Extract branch name
|
||||
run: |
|
||||
@@ -29,7 +29,7 @@ jobs:
|
||||
uses: crazy-max/ghaction-xgo@v2
|
||||
with:
|
||||
xgo_version: latest
|
||||
go_version: 1.19
|
||||
go_version: 1.21.3
|
||||
dest: dist
|
||||
pkg: cmd/dashboard
|
||||
prefix: dashboard
|
||||
@@ -59,10 +59,10 @@ jobs:
|
||||
password: ${{ secrets.ALI_PAT }}
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Set up image name
|
||||
run: |
|
||||
@@ -76,7 +76,7 @@ jobs:
|
||||
id: image-name
|
||||
|
||||
- name: Build dasbboard image And Push
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
|
||||
10
.github/workflows/test-on-pr.yml
vendored
10
.github/workflows/test-on-pr.yml
vendored
@@ -10,10 +10,10 @@ jobs:
|
||||
env:
|
||||
GO111MODULE: on
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "^1.20.0"
|
||||
go-version: "^1.21.3"
|
||||
- name: Unit test
|
||||
run: |
|
||||
go test -v ./...
|
||||
@@ -21,6 +21,6 @@ jobs:
|
||||
run: |
|
||||
go build cmd/dashboard/main.go
|
||||
- name: Run Gosec Security Scanner
|
||||
run: |
|
||||
go install github.com/securego/gosec/v2/cmd/gosec@latest
|
||||
gosec -exclude=G104 ./...
|
||||
uses: securego/gosec@master
|
||||
with:
|
||||
args: --exclude=G104 ./...
|
||||
|
||||
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@@ -17,10 +17,10 @@ jobs:
|
||||
env:
|
||||
GO111MODULE: on
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "^1.20.0"
|
||||
go-version: "^1.21.3"
|
||||
- name: Unit test
|
||||
run: |
|
||||
go test -v ./...
|
||||
@@ -28,6 +28,6 @@ jobs:
|
||||
run: |
|
||||
go build cmd/dashboard/main.go
|
||||
- name: Run Gosec Security Scanner
|
||||
run: |
|
||||
go install github.com/securego/gosec/v2/cmd/gosec@latest
|
||||
gosec -exclude=G104 ./...
|
||||
uses: securego/gosec@master
|
||||
with:
|
||||
args: --exclude=G104 ./...
|
||||
|
||||
Reference in New Issue
Block a user