mirror of
https://github.com/Simple-Tracker/qBittorrent-ClientBlocker.git
synced 2025-01-07 03:06:41 +08:00
Improve CI Test
This commit is contained in:
parent
097ce30db5
commit
7c3d9c327b
21
.github/workflows/ci-test.yaml
vendored
Normal file
21
.github/workflows/ci-test.yaml
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
name: 'Dev-CI-Test'
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: ['dev']
|
||||
pull_request:
|
||||
branches: ['dev']
|
||||
|
||||
jobs:
|
||||
Dev-CI-Test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 'Checkout'
|
||||
uses: actions/checkout@v4
|
||||
- name: 'Setup Go'
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.20.13'
|
||||
- name: 'Test'
|
||||
run: 'go test -v ./... -race'
|
21
.github/workflows/dev.yaml
vendored
21
.github/workflows/dev.yaml
vendored
@ -1,21 +0,0 @@
|
||||
name: 'Dev-CI-Go-Test'
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "dev" ]
|
||||
pull_request:
|
||||
branches: [ "dev" ]
|
||||
|
||||
jobs:
|
||||
Test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.20.13'
|
||||
|
||||
- name: Test
|
||||
run: go test -v ./... -race
|
2
.github/workflows/docker.yaml
vendored
2
.github/workflows/docker.yaml
vendored
@ -12,7 +12,7 @@ jobs:
|
||||
steps:
|
||||
- name: 'Checkout'
|
||||
uses: 'actions/checkout@v4'
|
||||
- name: Setup Docker Buildx
|
||||
- name: 'Setup Docker Buildx'
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: 'Login to Docker Hub'
|
||||
uses: 'docker/login-action@v3'
|
||||
|
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
@ -63,7 +63,7 @@ jobs:
|
||||
steps:
|
||||
- name: 'Checkout'
|
||||
uses: 'actions/checkout@v4'
|
||||
- name: Set build info
|
||||
- name: 'Set build info'
|
||||
id: build_info
|
||||
run: |
|
||||
echo "tag_version=$(basename ${GITHUB_REF}) (${{ matrix.goarch == 'arm' && format('{0}, {1}v{2}', matrix.goos, matrix.goarch, matrix.goarm) || format('{0}, {1}', matrix.goos, matrix.goarch) }})" >> "${GITHUB_OUTPUT}"
|
||||
|
Loading…
Reference in New Issue
Block a user