-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (65 loc) · 1.93 KB
/
Copy pathlint_and_test.yml
File metadata and controls
78 lines (65 loc) · 1.93 KB
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
name: Lint and test
on:
pull_request:
types: ["opened", "synchronize"]
jobs:
lint:
runs-on: runs-on
steps:
- name: "Checkout"
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- name: "Setup ruby"
uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b
with:
bundler-cache: true
- name: "Ruby lint"
run: bundle exec rubocop --format progress --format github
- name: "Python lint"
uses: chartboost/ruff-action@e18ae971ccee1b2d7bbef113930f00c670b78da4
with:
src: "./cdk"
test:
runs-on: runs-on
needs: lint
services:
db:
image: postgis/postgis:16-3.4
env:
POSTGRES_DB: local_office_search_api_testing
POSTGRES_USER: local_office_search_api
POSTGRES_PASSWORD: testing
ports:
- 5462:5432
options: >-
--health-cmd pg_isready
--health-interval 5s
--health-timeout 5s
--health-retries 5
steps:
- name: "Checkout"
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- name: "Setup ruby"
uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b
with:
bundler-cache: true
- name: "Rspec"
run: bundle exec rspec
env:
LOCAL_OFFICE_SEARCH_EPISERVER_USER: unittest
LOCAL_OFFICE_SEARCH_EPISERVER_PASSWORD: ci
audit:
runs-on: runs-on
needs: lint
steps:
- name: "Checkout"
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- name: "Setup ruby"
uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b
with:
bundler-cache: true
- name: "Bundle audit"
run: bundle exec bundle-audit
- name: "Brakeman audit"
run: bundle exec brakeman
- name: "License audit"
run: bundle exec license_finder