Skip to content

Commit 8cafc60

Browse files
Merge pull request #49 from MariusVanDerWijden/ci
.github: setup ci
2 parents d74d274 + 3a88a54 commit 8cafc60

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflow/build-push.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: node-crawler workflow
2+
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
tags:
9+
- '**'
10+
pull_request:
11+
branches:
12+
- master
13+
workflow_dispatch:
14+
15+
jobs:
16+
lint:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Set up Go
21+
uses: actions/setup-go@v2
22+
with:
23+
go-version: 1.20.5
24+
- name: Download golangci-lint
25+
run: wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s latest
26+
- name: Lint
27+
run: ./bin/golangci-lint run --config .golangci.yml
28+
- name: Vet
29+
run: go vet
30+
31+
test:
32+
runs-on: ubuntu-latest
33+
needs: lint
34+
steps:
35+
- uses: actions/checkout@v2
36+
- name: Set up Go
37+
uses: actions/setup-go@v2
38+
with:
39+
go-version: 1.20.5
40+
- name: Test
41+
run: go test -v ./...

0 commit comments

Comments
 (0)