Common 4.0 App Refactor Part 6 - Ornias

This commit is contained in:
kjeld Schouten-Lebbing 2021-05-23 13:14:54 +02:00
parent 12b4b6382f
commit ad4a2ae785
No known key found for this signature in database
GPG Key ID: 4CDAD4A532BC1EDB
1 changed files with 19 additions and 4 deletions

View File

@ -146,17 +146,17 @@ jobs:
if: ${{ steps.prep-lint.outputs.unittests == 'true' }}
run: |
go mod download
- name: Run tests
- name: Run unit tests
if: ${{ steps.prep-lint.outputs.unittests == 'true' }}
run: |
go test ./charts/.../tests -json | tee test.json
- name: Annotate tests
- name: Annotate unit tests
if: ${{ steps.prep-lint.outputs.unittests == 'true' }}
uses: guyarb/golang-test-annotations@v0.3.0
with:
test-results: test.json
- name: Run tests
- name: Parse Unit Tests
if: ${{ steps.prep-lint.outputs.unittests == 'true' }}
run: |
if grep -q "FAIL" test.json
@ -234,18 +234,33 @@ jobs:
with:
version: v3.5.3
- name: Checkout
if: ${{ needs.pre-release.outputs.release == 'true' }}
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.BOT_TOKEN }}
path: master
- name: Checkout
if: ${{ needs.pre-release.outputs.release == 'true' }}
uses: actions/checkout@v2
with:
fetch-depth: 0
repository: truecharts/catalog
token: ${{ secrets.BOT_TOKEN }}
path: catalog
- name: Checkout
if: ${{ needs.pre-release.outputs.release == 'false' }}
uses: actions/checkout@v2
with:
fetch-depth: 0
path: master
- name: Checkout
if: ${{ needs.pre-release.outputs.release == 'false' }}
uses: actions/checkout@v2
with:
fetch-depth: 0
repository: truecharts/catalog
path: catalog
- name: Remove if release already exists
run: |
for train in stable incubator develop non-free deprecated
@ -312,7 +327,7 @@ jobs:
cd catalog
/bin/bash -c "PWD=${pwd}; /usr/local/bin/catalog_validate validate --path $PWD"
- name: Commit and Push new App releases
if: ${{ steps.pre-release.outputs.release == 'true' }}
if: ${{ needs.pre-release.outputs.release == 'true' }}
run: |
cd catalog
git config user.name "TrueCharts-Bot"