Skip to content

Commit df083c9

Browse files
committed
added go tests
1 parent db0ac94 commit df083c9

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/go-tests.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Go Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Set up Go
20+
uses: actions/setup-go@v2
21+
with:
22+
go-version: '^1.16'
23+
24+
- name: Navigate to singly directory
25+
run: cd go/LinkedList/singly
26+
27+
- name: Install dependencies
28+
run: go get -t -v ./...
29+
30+
- name: Run tests
31+
run: go test -v ./...

0 commit comments

Comments
 (0)