Skip to content

Commit

Permalink
Test running outside of PR
Browse files Browse the repository at this point in the history
  • Loading branch information
mraerino committed Jul 23, 2023
1 parent b438bfc commit a5cde0d
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
name: Lint and Test Charts

on: pull_request
on:
pull_request:
push:
branches:
- main
schedule:
- cron: "20 4 * * 0"

jobs:
lint-test:
runs-on: ubuntu-latest
env:
CT_TARGET_BRANCH: ${{ github.base_ref }}
CT_TARGET_BRANCH: ${{ github.base_ref || 'main' }}
CT_ALL: ${{ github.event_name != 'pull_request' && 'true' || 'false' }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -35,13 +42,13 @@ jobs:
fi
- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
if: github.event_name != 'pull_request' || steps.list-changed.outputs.changed == 'true'
run: ct lint --config ct.yaml

- name: Create kind cluster
if: steps.list-changed.outputs.changed == 'true'
if: github.event_name != 'pull_request' || steps.list-changed.outputs.changed == 'true'
uses: helm/kind-action@v1.7.0

- name: Run chart-testing (install)
if: steps.list-changed.outputs.changed == 'true'
if: github.event_name != 'pull_request' || steps.list-changed.outputs.changed == 'true'
run: ct install --config ct.yaml

0 comments on commit a5cde0d

Please sign in to comment.