Skip to content

Commit 009dfe4

Browse files
committed
wip
1 parent 71f22ff commit 009dfe4

1 file changed

Lines changed: 12 additions & 18 deletions

File tree

.github/workflows/nightly.yaml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,17 @@ jobs:
1111
- name: Checkout code
1212
uses: actions/checkout@v4
1313

14-
- name: Run Full Validation
14+
- name: Run tests (random success/failure)
1515
run: |
16-
echo "Running full validation"
17-
# Your full validation steps here
16+
echo "Running nightly tests..."
17+
if [ $((RANDOM % 2)) -eq 0 ]; then
18+
echo "Tests passed!"
19+
exit 0
20+
else
21+
echo "Tests failed!"
22+
exit 0
23+
fi
1824
19-
- name: Update Full Validation Status
20-
if: always()
21-
uses: actions/github-script@v6
22-
with:
23-
github-token: ${{secrets.GITHUB_TOKEN}}
24-
script: |
25-
github.rest.repos.createCommitStatus({
26-
owner: context.repo.owner,
27-
repo: context.repo.repo,
28-
sha: context.sha,
29-
state: '${{ job.status }}',
30-
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}',
31-
description: 'Nightly full validation',
32-
context: 'nightly-full-validation'
33-
})
25+
- name: Mark workflow as successful
26+
if: success()
27+
run: echo "Tests passed successfully!"

0 commit comments

Comments
 (0)