Skip to content

Commit c28ed41

Browse files
committed
ci: add github actions workflow
1 parent 97fa033 commit c28ed41

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Set up Go
15+
uses: actions/setup-go@v5
16+
with:
17+
go-version: '1.21'
18+
- name: Start Redis and Postgres
19+
run: docker compose up -d redis postgres
20+
- name: Build
21+
run: mkdir -p bin && go build -o ./bin/bansho ./cmd/bansho
22+
- name: Test
23+
run: go test ./...

0 commit comments

Comments
 (0)