Skip to content

Commit df080f4

Browse files
committed
Workflow build enviroment
1 parent 6099110 commit df080f4

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ name: Gitea CI Workflow
33
on:
44
push:
55
branches:
6-
- main # Trigger on push to the main branch
7-
pull_request:
8-
branches:
9-
- main # Trigger on pull requests to the main branch
6+
- dev # Trigger on push to the dev branch
7+
108

119
jobs:
1210
build:
@@ -27,8 +25,13 @@ jobs:
2725
- name: Install dependencies
2826
run: |
2927
go mod tidy
28+
# Step 4: Run Linting (you can use golangci-lint for Go code linting)
29+
- name: Run GolangCI Lint
30+
uses: golangci/golangci-lint-action@v3
31+
with:
32+
version: v1.64.5 # Make sure to use the right version for your setup
3033

31-
# Step 4: Run only the specific test (TestIsValidUsername)
34+
# Step 4: Run only the specific test (TestIsValidUsername)
3235
#- name: Run Password Test
3336
#run:
3437

0 commit comments

Comments
 (0)