chore(ci workflows): update scripts to post CI results for linting, building, and testing phases

This commit is contained in:
2026-01-03 21:56:53 -06:00
parent 2955b5f2c2
commit 31525e2ede
3 changed files with 46 additions and 6 deletions

View File

@@ -52,4 +52,4 @@ jobs:
if: always() && github.event_name == 'pull_request' if: always() && github.event_name == 'pull_request'
env: env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
run: bash scripts/post_bench_results.sh run: bash scripts/post_ci_results.sh bench bench_results.txt

View File

@@ -33,7 +33,15 @@ jobs:
- name: Install Node dependencies - name: Install Node dependencies
run: task node_modules run: task node_modules
- name: Lint - name: Lint
run: task lint run: |
set -o pipefail
task lint 2>&1 | tee lint_results.txt
- name: Post Results to PR
if: always() && github.event_name == 'pull_request'
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
run: bash scripts/post_ci_results.sh "Linting" lint_results.txt
build-frontend: build-frontend:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -57,10 +65,18 @@ jobs:
SHORT_SHA=$(git rev-parse --short HEAD) SHORT_SHA=$(git rev-parse --short HEAD)
echo "version=${SHORT_SHA}" >> $GITHUB_OUTPUT echo "version=${SHORT_SHA}" >> $GITHUB_OUTPUT
- name: Build frontend - name: Build frontend
run: task build-frontend run: |
set -o pipefail
task build-frontend 2>&1 | tee build_results.txt
env: env:
VITE_APP_VERSION: ${{ steps.version.outputs.version }} VITE_APP_VERSION: ${{ steps.version.outputs.version }}
- name: Post Results to PR
if: always() && github.event_name == 'pull_request'
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
run: bash scripts/post_ci_results.sh "Frontend Build" build_results.txt
test-backend: test-backend:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -75,7 +91,15 @@ jobs:
with: with:
version: "3.46.3" version: "3.46.3"
- name: Compile backend - name: Compile backend
run: task compile run: |
set -o pipefail
task compile 2>&1 | tee compile_results.txt
- name: Post Results to PR
if: always() && github.event_name == 'pull_request'
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
run: bash scripts/post_ci_results.sh "Backend Compilation" compile_results.txt
test-lang: test-lang:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -100,4 +124,12 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: task install run: task install
- name: Run language tests - name: Run language tests
run: task test-lang run: |
set -o pipefail
task test-lang 2>&1 | tee lang_results.txt
- name: Post Results to PR
if: always() && github.event_name == 'pull_request'
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
run: bash scripts/post_ci_results.sh "Language Tests" lang_results.txt

View File

@@ -37,4 +37,12 @@ jobs:
run: task install run: task install
- name: Run tests - name: Run tests
run: task test run: |
set -o pipefail
task test 2>&1 | tee test_results.txt
- name: Post Results to PR
if: always() && github.event_name == 'pull_request'
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
run: bash scripts/post_ci_results.sh "Tests" test_results.txt