Skip to content

Commit 7c79d4c

Browse files
authored
added tester before deploy
1 parent c6151e1 commit 7c79d4c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on: [workflow_dispatch]
2+
3+
name: manual_testing
4+
5+
jobs:
6+
build:
7+
name: Test, build, and format checker
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-go@v5
12+
with:
13+
go-version: "1.23.0"
14+
- name: Test
15+
run: go test ./... -v
16+
- name: Build App
17+
run: go build ./cmd/app
18+
- name: Build Migration script
19+
run: go build ./cmd/migration
20+
- name: Build Keygen script
21+
run: go build ./cmd/keygen
22+
- name: Format
23+
run: |
24+
diff=$(gofmt -e -d .); \
25+
[[ -z $diff ]] || (echo ; echo "Reformat your code with \"gofmt -w .\"" ; exit 1)

0 commit comments

Comments
 (0)