Skip to content

Commit

Permalink
chore(ci): merged presubmit and validate_manifests into a single ci.yml.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP committed May 17, 2023
1 parent 0a9cb9c commit e651475
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 25 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/presubmit.yaml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,28 @@
name: PreSubmit
name: CI

on:
pull_request:
branches: [master]

jobs:
manifests-validation:
runs-on: ubuntu-latest

steps:
- name: Checkout test-infra ⤵️
uses: actions/checkout@v3

- name: Setup Kubeval ⛓️
uses: lra/[email protected]

- name: yaml config validation 🔍
run: kubeval --directories config/prow --ignore-missing-schemas

scan-terraform:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout test-infra ⤵️
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Go
uses: actions/setup-go@v1
Expand All @@ -26,4 +39,5 @@ jobs:
- name: Scan terrafrom code
run: |
terrascan scan -i terraform -d config/clusters -v \
--skip-rules 'AC_AWS_0214,AC_AWS_0369,AC_AWS_0487,AC_AWS_078,AWS.CloudTrail.Logging.Medium.007,AC_AWS_0447,AC_AWS_0497,AC_AWS_0458,AC_AWS_0320'
--skip-rules 'AC_AWS_0214,AC_AWS_0369,AC_AWS_0487,AC_AWS_078,AWS.CloudTrail.Logging.Medium.007,AC_AWS_0447,AC_AWS_0497,AC_AWS_0458,AC_AWS_0320'
20 changes: 0 additions & 20 deletions .github/workflows/validate_manifests.yml

This file was deleted.

0 comments on commit e651475

Please sign in to comment.