Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix daily test #1122

Merged
merged 2 commits into from
Aug 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
jobs:
test:
runs-on: ${{ matrix.os }}
# Testing all packages takes several hours
timeout-minutes: 720
strategy:
fail-fast: false
# Updating the wiki fails if between the checkout of the wiki and the push of the update the other job pushes its update
Expand All @@ -25,29 +27,25 @@ jobs:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Build and test all packages
continue-on-error: true
run: scripts/test/test_install.ps1 -all -max_tries 3
- name: Upload logs to artifacts
uses: ./.github/actions/upload-logs
if: always()
- name: Checkout wiki code
if: always()
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
repository: ${{ github.repository }}.wiki
path: wiki
- name: Add results to wiki
if: always()
run: python scripts/utils/generate_daily_results.py ${{ github.repository }} ${{ github.sha }} ${{ github.run_number }} ${{ github.run_id }} ${{ matrix.os }}
- name: Commit changes
if: always()
working-directory: wiki
run: |
git config user.email 'vm-packages@google.com'
git config user.name 'vm-packages'
git commit -am 'Add daily results'
git push
- name: Get badge info
if: always()
run: |
pwd
$json = Get-Content -Raw "success_failure.json" | ConvertFrom-Json
Expand All @@ -59,7 +57,6 @@ jobs:
echo "failure=$failure" >> $env:GITHUB_ENV
echo "message=$message" >> $env:GITHUB_ENV
- name: Update dynamic badge gist
if: always()
uses: schneegans/dynamic-badges-action@e9a478b16159b4d31420099ba146cdc50f134483 # v1.7.0
with:
auth: ${{ secrets.REPO_TOKEN }}
Expand Down
Loading