fix: node version of actions
This commit is contained in:
34
.github/workflows/ci.yml
vendored
34
.github/workflows/ci.yml
vendored
@@ -15,7 +15,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
uses: astral-sh/setup-uv@v6
|
uses: astral-sh/setup-uv@v7
|
||||||
with:
|
with:
|
||||||
enable-cache: true
|
enable-cache: true
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
uses: astral-sh/setup-uv@v6
|
uses: astral-sh/setup-uv@v7
|
||||||
with:
|
with:
|
||||||
enable-cache: true
|
enable-cache: true
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
uses: astral-sh/setup-uv@v6
|
uses: astral-sh/setup-uv@v7
|
||||||
with:
|
with:
|
||||||
enable-cache: true
|
enable-cache: true
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
uses: astral-sh/setup-uv@v6
|
uses: astral-sh/setup-uv@v7
|
||||||
with:
|
with:
|
||||||
enable-cache: true
|
enable-cache: true
|
||||||
|
|
||||||
@@ -127,7 +127,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
uses: astral-sh/setup-uv@v6
|
uses: astral-sh/setup-uv@v7
|
||||||
with:
|
with:
|
||||||
enable-cache: true
|
enable-cache: true
|
||||||
|
|
||||||
@@ -160,17 +160,19 @@ jobs:
|
|||||||
|
|
||||||
- name: Generate coverage badge
|
- name: Generate coverage badge
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
uses: jaywcjlove/coverage-badges-cli@main
|
run: |
|
||||||
with:
|
npx --yes coverage-badges-cli \
|
||||||
source: coverage.json
|
--source coverage.json \
|
||||||
output: badge/coverage-badge.svg
|
--output badge/coverage-badge.svg \
|
||||||
jsonPath: totals.percent_covered
|
--jsonPath totals.percent_covered
|
||||||
|
|
||||||
- name: Deploy coverage badge
|
- name: Deploy coverage badge
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
uses: peaceiris/actions-gh-pages@v4.0.0
|
run: |
|
||||||
with:
|
cd badge
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
git init -b coverage-badge
|
||||||
publish_dir: ./badge
|
git config user.name "github-actions[bot]"
|
||||||
publish_branch: coverage-badge
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
keep_files: false
|
git add .
|
||||||
|
git commit -m "Update coverage badge"
|
||||||
|
git push --force "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" coverage-badge
|
||||||
|
|||||||
Reference in New Issue
Block a user