-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (35 loc) · 1012 Bytes
/
prs.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
44
45
46
name: Test Build
on: push
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
- name: Run Pre-Commit
uses: pre-commit/[email protected]
build:
name: Build
runs-on: ubuntu-latest
needs: pre-commit
steps:
- name: Set up Go 1.23.1
uses: actions/setup-go@v2
with:
go-version: 1.23.1
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Build Binary
run: go build -v .
- name: Test Listen Command
shell: 'script -q -e -c "bash {0}"'
run: ./checkup listen -e https://google.com
- name: Test Exam Command Yaml
shell: 'script -q -e -c "bash {0}"'
run: ./checkup exam -f test.yml
- name: Test Exam Command Json
shell: 'script -q -e -c "bash {0}"'
run: ./checkup exam -f test.json