-
Notifications
You must be signed in to change notification settings - Fork 199
89 lines (83 loc) · 2.5 KB
/
verify.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Verify
on:
push:
branches:
- main
paths:
- 'xml/**.xml'
pull_request:
paths:
- 'xml/**.xml'
jobs:
standardize:
name: 'Standardize'
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run recog standardize
run: bundle exec bin/recog_standardize xml/*.xml
ruby-verify:
name: 'Ruby Verify'
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout recog content
uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run recog verify
run: bundle exec bin/recog_verify --schema-location xml/fingerprints.xsd --no-warnings xml/*.xml
java-verify:
name: 'Java Verify'
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout Java implementation
uses: actions/checkout@v4
with:
repository: rapid7/recog-java
- name: Checkout recog content
uses: actions/checkout@v4
with:
path: recog-content
- uses: actions/setup-java@v2
with:
distribution: zulu
java-version: '17'
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn --batch-mode --no-transfer-progress install -Dmaven.antrun.skip=true -DskipTests
- name: Run recog verify
run: mvn --batch-mode --no-transfer-progress --projects recog-verify exec:java -Dexec.mainClass="com.rapid7.recog.verify.RecogVerifier" -Dexec.args="--no-warnings recog-content/xml/*.xml"
go-verify:
name: 'Go Verify'
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout Go implementation
uses: actions/checkout@v4
with:
repository: runZeroInc/recog-go
- name: Checkout recog content
uses: actions/checkout@v4
with:
path: recog-content
- uses: actions/setup-go@v3
with:
go-version: '^1.17.1'
- name: Run recog verify
run: go run cmd/recog_verify/main.go recog-content/xml/