Skip to content

Commit b62be9e

Browse files
committed
Added CI/CD
1 parent bbdb81d commit b62be9e

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @xBlaz3kx

.github/workflows/test.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: "Lint and test"
2+
on:
3+
push:
4+
branches:
5+
- master
6+
paths-ignore:
7+
- 'docs/**'
8+
- '.run/**'
9+
- 'api/**'
10+
- 'features/**'
11+
- 'config/**'
12+
- 'deployments/**'
13+
- '*.md'
14+
tags:
15+
- v*
16+
17+
pull_request:
18+
types: [ opened, synchronize ]
19+
branches:
20+
- master
21+
paths-ignore:
22+
- 'docs/**'
23+
- '.run/**'
24+
- 'api/**'
25+
- 'features/**'
26+
- 'config/**'
27+
- 'deployments/**'
28+
- '*.md'
29+
30+
workflow_dispatch:
31+
32+
jobs:
33+
34+
# Run unit tests
35+
tests:
36+
name: "Run unit tests"
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Checkout
40+
uses: actions/checkout@v4
41+
42+
- name: Setup Go
43+
uses: actions/setup-go@v4
44+
with:
45+
go-version: 1.21.1
46+
47+
- name: Install dependencies and run tests
48+
run: |
49+
go mod download
50+
go test -v ./...

0 commit comments

Comments
 (0)