Skip to content

Commit

Permalink
Update performance_pre.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
smeyer198 committed Dec 10, 2024
1 parent ceba0f4 commit 54d6e54
Showing 1 changed file with 30 additions and 29 deletions.
59 changes: 30 additions & 29 deletions .github/workflows/performance_pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,39 +22,40 @@ env:

jobs:
performance-pre:
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
fetch-depth: 0
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Build and test Android Scanner
uses: ./.github/actions/scanner-android
with:
java-version: ${{ env.JAVA_VERSION }}
- name: Build and test Android Scanner
uses: ./.github/actions/scanner-android
with:
java-version: ${{ env.JAVA_VERSION }}

- name: Extract performance
uses: ./.github/actions/performance_pre
with:
test-results-path: HeadlessAndroidScanner/shippable/testresults
source-branch: gh-pages
current-results: android_history.txt
output-file: gh-pages-output/android_history.txt
- name: Extract performance
uses: ./.github/actions/performance_pre
with:
test-results-path: HeadlessAndroidScanner/shippable/testresults
source-branch: gh-pages
current-results: android_history.txt
output-file: gh-pages-output/android_history.txt

- name: Generate HTML report
run: |
echo "<html><body><h1>Aggregated Test Results</h1><ul>" > gh-pages-output/index.html
cat gh-pages-output/android_history.txt | while read line; do
echo "${line}"
echo "<li>${line}</li>" >> gh-pages-output/index.html
done
echo "</ul></body></html>" >> gh-pages-output/index.html
- name: Generate HTML report
run: |
echo "<html><body><h1>Aggregated Test Results</h1><ul>" > gh-pages-output/index.html
cat gh-pages-output/android_history.txt | while read line; do
echo "${line}"
echo "<li>${line}</li>" >> gh-pages-output/index.html
done
echo "</ul></body></html>" >> gh-pages-output/index.html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./gh-pages-output
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./gh-pages-output

performance-pre-2:
if: false
Expand Down

0 comments on commit 54d6e54

Please sign in to comment.