Skip to content

Commit 1469362

Browse files
[ADD] CI.yaml workflow
1 parent 7920559 commit 1469362

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# CICD using Github actions
2+
3+
name: CI/CD
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
paths-ignore:
10+
- 'helm/**'
11+
- 'k8s/**'
12+
- 'README.md'
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Go 1.22
23+
uses: actions/setup-go@v2
24+
with:
25+
go-version: 1.22
26+
27+
- name: Build
28+
run: go build -o go-web-app
29+
30+
- name: Test
31+
run: go test ./...
32+
33+
code-quality:
34+
runs-on: ubuntu-latest
35+
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@v4
39+
40+
- name: Run golangci-lint
41+
uses: golangci/golangci-lint-actions@v6
42+
with:
43+
version: v1.56.2

0 commit comments

Comments
 (0)