Skip to content
Open
Show file tree
Hide file tree
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
68 changes: 0 additions & 68 deletions .github/workflows/labels.yaml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Nightly Build
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"

jobs:
full-validation:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Run tests (random success/failure)
run: |
echo "Running nightly tests..."
if [ $((RANDOM % 2)) -eq 0 ]; then
echo "Tests passed!"
exit 0
else
echo "Tests failed!"
exit 0
fi

- name: Mark workflow as successful
if: success()
run: echo "Tests passed successfully!"
41 changes: 41 additions & 0 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: PR Validation
on:
pull_request:
types: [opened, synchronize, labeled, unlabeled]
branches:
- main

jobs:
check-full-validation:
runs-on: ubuntu-latest
steps:
- name: Check Full Validation Status
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const { owner, repo } = context.repo;
const runs = await github.rest.actions.listWorkflowRuns({
owner,
repo,
workflow_id: 'nightly.yaml',
branch: 'main',
status: 'completed'
});
if (runs.data.workflow_runs.length === 0) {
core.setFailed('No successful nightly runs found.');
} else if (runs.data.workflow_runs[0].conclusion !== 'success') {
core.setFailed(`Last nightly run failed. See: ${runs.data.workflow_runs[0].html_url}`);
}

quick-validation:
needs: check-full-validation
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Run Quick Validation
run: |
echo "Running quick validation:"
# Your quick validation steps here