-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.03 KB
/
ci.yaml
File metadata and controls
48 lines (38 loc) · 1.03 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
name: CI
on:
push:
branches:
- main
tags:
- "*.*.*"
pull_request:
branches:
- main
jobs:
checkov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.0.2
- name: Get checkov
run: pip install checkov
- name: Get yq yaml parser
run: |
wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
chmod a+x /usr/local/bin/yq
- name: Setup BATS
uses: mig4/setup-bats@v1
with:
bats-version: 1.6.0
- name: Generate BATS tests
run: ./infra/generate-bats-tests.sh
- name: Execute BATS tests
continue-on-error: true
run: bats --report-formatter junit infra-tests.bats
- name: Test Report
uses: dorny/test-reporter@0d00bb14cb0cc2c9b8985df6e81dd333188224e1 # renovate: tag=v1.5.0
if: always()
with:
name: checkov results
path: report.xml
reporter: java-junit
fail-on-error: false