Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andyjmaclean committed Apr 12, 2024
1 parent 8025cf5 commit d79df34
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ jobs:
sleep 5
- name: Push image
run: |
CTX_K8s=${{ secrets.TEST_K8S_CONTEXT }} && [[ ${{ github.event.inputs.deploy_environment }} == 'production' ]] && CTX_K8s=${{ secrets.PRODUCTION_K8S_CONTEXT }}
if ${{ github.event.inputs.delete }} == 'true'
then
kubectl --context ${{ secrets.TEST_K8S_CONTEXT }} delete -n ${{ github.event.inputs.deploy_environment }} -k deployment/${{ github.event.inputs.deploy_environment }}
kubectl --context $CTX_K8s delete -n ${{ github.event.inputs.deploy_environment }} -k deployment/${{ github.event.inputs.deploy_environment }}
else
kubectl --context ${{ secrets.TEST_K8S_CONTEXT }} apply -n ${{ github.event.inputs.deploy_environment }} -k deployment/${{ github.event.inputs.deploy_environment }}
kubectl --context $CTX_K8s apply -n ${{ github.event.inputs.deploy_environment }} -k deployment/${{ github.event.inputs.deploy_environment }}
fi
12 changes: 8 additions & 4 deletions .github/workflows/run-sonar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ jobs:
if: ${{ github.event.inputs.run_build == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Get Project Source
uses: actions/download-artifact@master
#- name: Get Project Source
# uses: actions/download-artifact@master
# with:
# name: appSource
# path: src/app
- name: Checkout
uses: actions/checkout@v4
with:
name: appSource
path: src/app
ref: ${{ github.event.inputs.tag_name }}

- name: Get Project LCOV
uses: actions/download-artifact@master
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/run-tests-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@ jobs:
node-version: '18.18.0'
- run: npm install
- name: Run Cypress Tests
id: execute
run: |
(npm run start:ci-data) & (sleep 10 && npm run cypress:ci)
- name: close test-data server
if: success() || failure()
run: |
fuser -k 3001/tcp
a11y:
if: ${{ github.event.inputs.run_build == 'true' }}
runs-on: ubuntu-latest
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
npm run test:dev
- run: |
cp coverage/**/lcov.info .
- uses: actions/upload-artifact@master
with:
name: appSource
path: src/app
#- uses: actions/upload-artifact@master
# with:
# name: appSource
# path: src/app
- uses: actions/upload-artifact@master
with:
name: appLcov
Expand Down

0 comments on commit d79df34

Please sign in to comment.