Skip to content

Commit 935fbb8

Browse files
authored
Merge pull request #34 from Valentinov3/feature/ci-pipeline
2 parents bdfdc74 + d8a9e43 commit 935fbb8

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master, feature/* ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v5
19+
with:
20+
go-version: '1.20'
21+
22+
- name: Install dependencies
23+
run: go mod tidy
24+
25+
- name: Run unit tests
26+
run: go test ./...
27+
28+
- name: Build project
29+
run: go build ./...

0 commit comments

Comments
 (0)