mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
.github/workflows: Migrate workflows to Blacksmith runners (#4504)
Co-authored-by: blacksmith-sh[bot] <157653362+blacksmith-sh[bot]@users.noreply.github.com> Co-authored-by: Chris Estreich <cestreich@gmail.com>
This commit is contained in:
parent
e2516ebe02
commit
fb83f917cc
2 changed files with 19 additions and 16 deletions
16
.github/actions/slack-notify/action.yml
vendored
16
.github/actions/slack-notify/action.yml
vendored
|
|
@ -23,19 +23,17 @@ runs:
|
|||
run: |
|
||||
echo "Parsing job results..."
|
||||
failed_list=""
|
||||
|
||||
# Parse the JSON and extract failed jobs
|
||||
|
||||
echo '${{ inputs.failed-jobs }}' | jq -r 'to_entries[] | select(.value.result == "failure") | .key' | while read job; do
|
||||
case $job in
|
||||
"check-translations") failed_list="${failed_list}❌ Translation check\n" ;;
|
||||
"knip") failed_list="${failed_list}❌ Knip analysis\n" ;;
|
||||
"compile") failed_list="${failed_list}❌ Compile & lint\n" ;;
|
||||
"platform-unit-test") failed_list="${failed_list}❌ Unit tests\n" ;;
|
||||
"unit-test") failed_list="${failed_list}❌ Unit tests\n" ;;
|
||||
"integration-test") failed_list="${failed_list}❌ Integration tests\n" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
# Remove trailing newline and save to output
|
||||
|
||||
echo "failed_jobs<<EOF" >> $GITHUB_OUTPUT
|
||||
echo -e "$failed_list" | sed '/^$/d' >> $GITHUB_OUTPUT
|
||||
echo "EOF" >> $GITHUB_OUTPUT
|
||||
|
|
@ -47,14 +45,14 @@ runs:
|
|||
channel: ${{ inputs.channel }}
|
||||
text: |
|
||||
🚨 ${{ inputs.workflow-name }} workflow failed on main branch!
|
||||
|
||||
|
||||
Repository: ${{ github.repository }}
|
||||
Commit: ${{ github.sha }}
|
||||
Author: ${{ github.actor }}
|
||||
|
||||
|
||||
Failed jobs:
|
||||
${{ steps.parse-jobs.outputs.failed_jobs }}
|
||||
|
||||
|
||||
View details: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ inputs.webhook-url }}
|
||||
SLACK_WEBHOOK_URL: ${{ inputs.webhook-url }}
|
||||
|
|
|
|||
19
.github/workflows/code-qa.yml
vendored
19
.github/workflows/code-qa.yml
vendored
|
|
@ -10,7 +10,7 @@ on:
|
|||
|
||||
jobs:
|
||||
check-translations:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
|
@ -20,7 +20,7 @@ jobs:
|
|||
run: node scripts/find-missing-translations.js
|
||||
|
||||
knip:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
|
@ -30,7 +30,7 @@ jobs:
|
|||
run: pnpm knip
|
||||
|
||||
compile:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
|
@ -41,11 +41,16 @@ jobs:
|
|||
- name: Check types
|
||||
run: pnpm check-types
|
||||
|
||||
platform-unit-test:
|
||||
unit-test:
|
||||
name: platform-unit-test (${{ matrix.name }})
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest]
|
||||
include:
|
||||
- os: blacksmith-4vcpu-ubuntu-2404
|
||||
name: ubuntu-latest
|
||||
- os: windows-latest
|
||||
name: windows-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
|
@ -70,7 +75,7 @@ jobs:
|
|||
fi
|
||||
|
||||
integration-test:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
needs: [check-openrouter-api-key]
|
||||
if: needs.check-openrouter-api-key.outputs.exists == 'true'
|
||||
steps:
|
||||
|
|
@ -87,7 +92,7 @@ jobs:
|
|||
|
||||
notify-slack-on-failure:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [check-translations, knip, compile, platform-unit-test, integration-test]
|
||||
needs: [check-translations, knip, compile, unit-test, integration-test]
|
||||
if: ${{ always() && github.event_name == 'push' && github.ref == 'refs/heads/main' && contains(needs.*.result, 'failure') }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue