Skip to content

Commit

Permalink
Final test
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-Gallant committed Oct 15, 2023
1 parent b8ab851 commit b5df39d
Showing 1 changed file with 2 additions and 47 deletions.
49 changes: 2 additions & 47 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
# npx prettier --check .

app_preview_dev:
if: ${{ contains(fromJSON('["pull_request"]'), github.event_name)}}
# if: ${{ contains(fromJSON('["pull_request"]'), github.event_name)}}
runs-on: ubuntu-latest
# needs: [ code_scan ]
steps:
Expand Down Expand Up @@ -101,21 +101,6 @@ jobs:
name: Lighthouse Preview
path: ${{ github.workspace }}/tmp/artifacts

- name: Rename JSON report
run: mv ${{ github.workspace }}/tmp/artifacts/results.json ${{ github.workspace }}/tmp/artifacts/manifest.json

- name: Lighthouse Preview Summary
id: Lighthouse
uses: iyu88/[email protected]
with:
lh_directory: '${{ github.workspace }}'
manifest_path: ${{ github.workspace }}/tmp/artifacts

- run: |
echo "" >> $GITHUB_STEP_SUMMARY
echo "## Lighthouse Preview Report" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.lighthouse.outputs.comments }}" >> $GITHUB_STEP_SUMMARY
# website_test_dev:
# runs-on: ubuntu-latest
# needs: [ code_scan ]
Expand Down Expand Up @@ -284,28 +269,10 @@ jobs:
name: Lighthouse Dev
path: ${{ github.workspace }}/tmp/artifacts

- name: Rename JSON report
run: mv ${{ github.workspace }}/tmp/artifacts/results.json ${{ github.workspace }}/tmp/artifacts/manifest.json

- run: ls ${{ github.workspace }}/tmp/artifacts

- name: Lighthouse Dev Summary
id: Lighthouse
uses: iyu88/[email protected]
with:
lh_directory: ./tmp/
manifest_path: artifacts

- run: |
echo "" >> $GITHUB_STEP_SUMMARY
echo "## Lighthouse Dev Report" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.lighthouse.outputs.comments }}" >> $GITHUB_STEP_SUMMARY
deploy_website_prod:
name: Deploy Prod Website
# needs: [ deploy_website_dev, deploy_app_dev ]
if: ${{ github.ref == 'refs/heads/main' }}
#if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
# - name: Checkout repository
Expand All @@ -330,15 +297,3 @@ jobs:
with:
name: Lighthouse Prod
path: ${{ github.workspace }}/tmp/artifacts

- name: Lighthouse Dev Summary
id: Lighthouse
uses: iyu88/[email protected]
with:
lh_directory: '${{ github.workspace }}'
manifest_path: /tmp/artifacts

- run: |
echo "" >> $GITHUB_STEP_SUMMARY
echo "## Lighthouse Dev Report" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.lighthouse.outputs.comments }}" >> $GITHUB_STEP_SUMMARY

0 comments on commit b5df39d

Please sign in to comment.