Skip to content

Commit 92ce13b

Browse files
committed
refactor: renamed ci workflow
1 parent e62b296 commit 92ce13b

File tree

2 files changed

+58
-34
lines changed

2 files changed

+58
-34
lines changed

.github/workflows/build.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/ci.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Set up Go
16+
uses: actions/setup-go@v4
17+
with:
18+
go-version: "stable"
19+
20+
- name: Restore bin
21+
uses: actions/cache@v3
22+
with:
23+
path: ./bin
24+
key: ${{ runner.os }}-bin-${{ hashFiles('**/go.sum') }}
25+
26+
- name: Run linter
27+
run: make lint
28+
29+
- name: Cache bin
30+
uses: actions/cache@v3
31+
with:
32+
path: ./bin
33+
key: ${{ runner.os }}-bin-${{ hashFiles('**/go.sum') }}
34+
35+
test:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v3
39+
40+
- name: Set up Go
41+
uses: actions/setup-go@v4
42+
with:
43+
go-version: "stable"
44+
45+
- name: Restore bin
46+
uses: actions/cache@v3
47+
with:
48+
path: ./bin
49+
key: ${{ runner.os }}-bin-${{ hashFiles('**/go.sum') }}
50+
51+
- name: Run tests
52+
run: make test
53+
54+
- name: Cache bin
55+
uses: actions/cache@v3
56+
with:
57+
path: ./bin
58+
key: ${{ runner.os }}-bin-${{ hashFiles('**/go.sum') }}

0 commit comments

Comments
 (0)