Skip to content

Commit

Permalink
Improve CI Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Simple-Tracker committed Sep 9, 2024
1 parent 097ce30 commit 7c3d9c3
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci-test.yaml
Original file line number Diff line number Diff line change
@@ -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 changes: 0 additions & 21 deletions .github/workflows/dev.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 7c3d9c3

Please sign in to comment.