Skip to content

Commit 41f5a2c

Browse files
add tests pipeline (Layr-Labs#3)
1 parent 777aa59 commit 41f5a2c

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.github/workflows/unit-tests.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: unit-tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
Test:
11+
name: Test
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-go@v4
16+
with:
17+
go-version: '1.21'
18+
- name: Test
19+
run: make tests

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: help build test
1+
.PHONY: help build tests mocks
22

33
include .env
44

@@ -13,5 +13,5 @@ mocks: ## generates mocks
1313
go install go.uber.org/mock/[email protected]
1414
go generate ./...
1515

16-
test: ## runs all tests
16+
tests: ## runs all tests
1717
go test ./... -covermode=atomic

0 commit comments

Comments
 (0)