Skip to content

Commit

Permalink
add linter to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
simar7 committed Jan 23, 2025
1 parent afd8c6a commit 53b9d0a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ jobs:
with:
args: --verbose
version: v1.61
skip-pkg-cache: true
skip-build-cache: true
- name: Verify YAML code
uses: ibiqlik/action-yamllint@v3
- name: Vendor Go modules
Expand Down Expand Up @@ -111,24 +109,29 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

- name: Install tools
uses: aquaproj/aqua-installer@v3.1.0
with:
aqua_version: v1.25.0

- name: Setup Kubernetes cluster (KIND)
uses: engineerd/setup-kind@v0.6.2
with:
version: ${{ env.KIND_VERSION }}
image: ${{ env.KIND_IMAGE }}

- name: Test connection to Kubernetes cluster
run: |
kubectl cluster-info
kubectl wait --for=condition=Ready nodes --all --timeout=300s
kubectl describe node
- name: Run integration tests
run: |
kubectl create -k deploy/static
Expand All @@ -137,10 +140,12 @@ jobs:
KUBECONFIG: /home/runner/.kube/config
OPERATOR_NAMESPACE: trivy-system
OPERATOR_TARGET_NAMESPACES: default

- name: Upload code coverage
uses: codecov/codecov-action@v5
with:
files: ./itest/trivy-operator/coverage.txt

e2e-testing:
name: Run end to end testing
needs:
Expand Down

0 comments on commit 53b9d0a

Please sign in to comment.