Skip to content

chore: increment build number #3431

chore: increment build number

chore: increment build number #3431

Workflow file for this run

# .github/workflows/release.yml
name: Test app
on:
push:
jobs:
build:
runs-on: macos-latest
steps:
- name: Github checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install Dependencies
run: npm ci
- name: Run tests
id: test
run: |
set -o pipefail
npx vitest --run --coverage.enabled=true --coverage.reporter=json --coverage.reporter=text-summary --silent=true 2>&1 | tee test-output.txt
echo "SUMMARY=$(tail -5 test-output.txt | head -1)" > $GITHUB_OUTPUT
- name: Capture coverage
id: coverage
run: |
SUMMARY="${{ steps.test.outputs.SUMMARY }}"
TOKENS=($SUMMARY)
echo "COVERAGE=$(echo ${TOKENS[2]})" > $GITHUB_OUTPUT
- name: Record coverage history
if: github.ref == 'refs/heads/main'
env:
GH_TOKEN: ${{ secrets.GIST_SECRET }}
GIST_ID: "fee06adf8df838e499209254e61da7f6"
run: |
gh gist view $GIST_ID -f coverage-history.json > coverage-history.json 2>/dev/null || echo "[]" > coverage-history.json
node tools/coverage_record.js
gh gist edit $GIST_ID -a coverage-history.json
- name: Create coverage badge
if: github.ref == 'refs/heads/main'
uses: schneegans/dynamic-badges-action@v1.0.0
with:
auth: ${{ secrets.GIST_SECRET }}
gistID: 8febadb1ecb32078db4c003d0c09f565
filename: witsy__main.json
label: Coverage
message: ${{ steps.coverage.outputs.COVERAGE }}
labelColor: rgb(61, 70, 78)
logoColor: rgb(255, 255, 255)
color: rgb(51, 203, 85)
namedLogo: vitest