Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Dec 10, 2024
1 parent 9a4c0ce commit b20531a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
1 change: 0 additions & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ jobs:
branch-prefix: ${{ needs.create-branch-prefix.outputs.branch-prefix }}
directories: ${{ matrix.benchmark_group.directories }}
exclude-dirs: ${{ needs.get-exclude-dirs.outputs.exclude-dirs }}
version: $(jq -r '.version' package.json)

squash-branches:
needs: [run-benchmarks, create-branch-prefix]
Expand Down
25 changes: 8 additions & 17 deletions .github/workflows/benchmark_parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ on:
required: false
type: string
default: ''
version:
required: true
type: string

secrets:
GPG_SIGNING_KEY:
Expand All @@ -28,28 +25,22 @@ on:
required: true

jobs:
log-version:
runs-on: ubuntu-latest
steps:
- run: |
echo "Version: $(jq -r '.version' package.json)"
log-input-version:
runs-on: ubuntu-latest
steps:
- run: |
echo "Version: ${{ inputs.version }}"
prepare-benchmark:
name: Prepare Benchmark
runs-on: ubuntu-latest
outputs:
test-infos: ${{ steps.get-test-infos.outputs.test-infos }}
version: ${{ steps.get-version.outputs.version }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.base-branch }}

- id: get-version
run: |
VERSION="$(jq -r '.version' package.json)"
echo "version=$VERSION" >> $GITHUB_OUTPUT
- id: get-test-infos
uses: ./.github/actions/get_test_infos
with:
Expand Down Expand Up @@ -107,14 +98,14 @@ jobs:
echo "The benchmark test failed"
if [ -f benchmarks.md ]; then
# Create a temporary file with the failure message
echo "⚠️ **WARNING: Benchmark process failed for version ${{ inputs.version }}**" > temp.md
echo "⚠️ **WARNING: Benchmark process failed for version ${{ needs.prepare-benchmark.outputs.version }}**" > temp.md
echo "" >> temp.md
# Append the original content
cat benchmarks.md >> temp.md
# Replace the original file
mv temp.md benchmarks.md
else
echo "⚠️ **WARNING: Benchmark process failed for version ${{ inputs.version }}**" > benchmarks.md
echo "⚠️ **WARNING: Benchmark process failed for version ${{ needs.prepare-benchmark.outputs.version }}**" > benchmarks.md
fi
- name: Create branch name
Expand Down

0 comments on commit b20531a

Please sign in to comment.