Skip to content

Commit

Permalink
Merge pull request #4113 from camilamacedo86/review-fix-ci
Browse files Browse the repository at this point in the history
🌱  ci- cleanup lint samples
  • Loading branch information
k8s-ci-robot authored Aug 30, 2024
2 parents e93492b + a5fe5be commit d3ce905
Showing 1 changed file with 10 additions and 30 deletions.
40 changes: 10 additions & 30 deletions .github/workflows/lint-sample.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# Copyright 2023 The Caramello-io Authors.

name: Sample Testdata Tests
name: Lint Samples

on:
push:
paths-ignore:
- '**/*.md'
pull_request:
paths-ignore:
- '**/*.md'

jobs:
test:
name: "Testdata - make test"
lint-samples:
runs-on: ubuntu-latest
if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
steps:
Expand All @@ -18,36 +19,15 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: '~1.22'
- name: Remove pre-installed kustomize
run: sudo rm -f /usr/local/bin/kustomize
- name: Run make test for project-v4-with-deploy-image
run: cd testdata/project-v4-with-deploy-image && go mod tidy && make all && make test
- name: Run make test for project-v4-multigroup-with-deploy-image
run: cd testdata/project-v4-multigroup-with-deploy-image && go mod tidy && make all && make test

lint:
name: "Testdata - Lint"
runs-on: ubuntu-latest
# Pull requests from the same repository won't trigger this checks as they were already triggered by the push
if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
steps:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '~1.22'
- name: Clone the code
uses: actions/checkout@v4
- name: Run linter
uses: golangci/golangci-lint-action@v6
with:
version: v1.57
working-directory: testdata/project-v4-with-deploy-image
version: v1.59
working-directory: testdata/project-v4
args: --config .golangci.yml ./...
skip-cache: true # first lint action will handle
- name: Run linter
uses: golangci/golangci-lint-action@v6
with:
version: v1.57
working-directory: testdata/project-v4-multigroup-with-deploy-image
version: v1.59
working-directory: testdata/project-v4-with-deploy-image
args: --config .golangci.yml ./...
skip-cache: true # first lint action will handle

0 comments on commit d3ce905

Please sign in to comment.