-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 889 Bytes
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Pull Request
on:
pull_request:
branches: '*'
jobs:
testAndLint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21.6'
- name: Lint/Staticcheck scraper
uses: dominikh/staticcheck-action@v1.3.0
with:
version: "2023.1"
install-go: false
working-directory: scraper
- name: Lint/Staticcheck proxy
uses: dominikh/staticcheck-action@v1.3.0
with:
version: "2023.1"
install-go: false
working-directory: proxy
- name: Build scraper
run: go build -v ./...
working-directory: scraper
- name: Test scraper
run: go test -v ./...
working-directory: scraper
- name: Build proxy
run: go build -v ./...
working-directory: proxy