Common 4.0 App Refactor Part 6 - Ornias

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