-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't deploy if PR Draft or Dependabot (#608)
* Don't deploy if PR Draft or Dependabot * Bump Helm, Helmfile, and Tailscale
- Loading branch information
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ on: | |
|
||
jobs: | ||
build: | ||
if: ${{ !github.event.pull_request.draft }} | ||
if: github.event.pull_request.draft == false | ||
name: Build images and push to GHCR | ||
permissions: | ||
id-token: write # This is required for requesting the JWT | ||
|
@@ -149,7 +149,7 @@ jobs: | |
pylint app --rcfile=.pylintrc -r n --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" --exit-zero > pylintreport.txt | ||
test: | ||
if: ${{ !github.event.pull_request.draft }} | ||
if: github.event.pull_request.draft == false | ||
name: Test | ||
needs: | ||
- build | ||
|
@@ -253,7 +253,7 @@ jobs: | |
if: needs.test.outputs.test_success == 'false' | ||
|
||
combine-coverage: | ||
if: ${{ !github.event.pull_request.draft }} | ||
if: github.event.pull_request.draft == false | ||
name: Coverage | ||
runs-on: ubuntu-latest | ||
needs: status-check | ||
|
@@ -288,7 +288,7 @@ jobs: | |
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
|
||
deploy: | ||
if: ${{ !github.event.pull_request.draft }} && github.actor != 'dependabot[bot]' | ||
if: github.triggering_actor != 'dependabot[bot]' && github.event.pull_request.draft == false | ||
name: Deploy to EKS | ||
environment: | ||
name: dev | ||
|
@@ -302,9 +302,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
env: | ||
TAILSCALE_VERSION: 1.50.1 | ||
HELMFILE_VERSION: v0.157.0 | ||
HELM_VERSION: v3.13.1 | ||
TAILSCALE_VERSION: 1.56.1 | ||
HELMFILE_VERSION: v0.159.0 | ||
HELM_VERSION: v3.13.3 | ||
OUTPUT_FILE: test_output.xml | ||
COVERAGE_FILE: test_coverage.txt | ||
PYTEST_COMPLETIONS: 1 | ||
|
@@ -598,15 +598,15 @@ jobs: | |
|
||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v4 | ||
if: success() || failure() # always run even if the previous step fails | ||
if: always () | ||
with: | ||
report_paths: './test_output.xml' | ||
fail_on_failure: true | ||
detailed_summary: true | ||
require_passed_tests: true | ||
|
||
- name: Pytest coverage comment | ||
if: success() || failure() # always run even if the previous step fails | ||
if: always() | ||
uses: MishaKav/pytest-coverage-comment@main | ||
with: | ||
pytest-coverage-path: ./test_coverage.txt | ||
|
@@ -615,7 +615,7 @@ jobs: | |
|
||
- name: Helmfile destroy pytest | ||
uses: helmfile/[email protected] | ||
if: success() || failure() # always run even if the previous step fails | ||
if: always() | ||
with: | ||
helmfile-args: | | ||
destroy \ | ||
|