Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump codecov/codecov-action from 3 to 4 #9672

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
196 changes: 98 additions & 98 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,98 +1,98 @@
name: ci
on:
pull_request:
branches: [ main, feature/*, hotfix/* ]
push:
branches: [ main, feature/*, hotfix/* ]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4
with:
lfs: true

- uses: ./.github/actions/build

- run: npm run lint
shell: bash
working-directory: templates

- run: npm test
shell: bash
working-directory: templates

- run: dotnet test -c Release -f net8.0 --no-build --collect:"XPlat Code Coverage"

- run: dotnet test -c Release -f net7.0 --no-build --collect:"XPlat Code Coverage"
if: matrix.os == 'ubuntu-latest'

- run: dotnet test -c Release -f net6.0 --no-build --collect:"XPlat Code Coverage"
if: matrix.os == 'ubuntu-latest'

- uses: codecov/codecov-action@v3
if: matrix.os == 'ubuntu-latest'

- run: echo "DOTNET_DbgEnableMiniDump=1" >> $GITHUB_ENV
if: matrix.os == 'ubuntu-latest'

- run: dotnet run -c Release --no-build -f net8.0 --project src/docfx -- docs/docfx.json
- run: dotnet run -c Release --no-build -f net8.0 --project src/docfx -- samples/seed/docfx.json --output docs/_site/seed

- uses: actions/upload-pages-artifact@v3
if: matrix.os == 'ubuntu-latest'
with:
path: docs/_site

- uses: actions/upload-artifact@v4
if: ${{ failure() && matrix.os == 'ubuntu-latest' }}
with:
name: dump
path: /tmp/coredump*

snapshot:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
lfs: true

- uses: ./.github/actions/build

- run: dotnet build -c Release samples/extensions/build
- run: dotnet test -c Release -f net8.0 --no-build --filter Stage=Snapshot
working-directory: test/docfx.Snapshot.Tests
env:
SNAPSHOT_TEST: true
BUILD_SERVER: ${{ github.event_name != 'pull_request' }}

- uses: stefanzweifel/git-auto-commit-action@v5
if: github.event_name == 'pull_request'
with:
commit_message: 'test(snapshot): update snapshots ${{ github.sha }} for ${{ matrix.os }}'

publish-docs:
if: github.ref == 'refs/heads/main'
needs: [test, snapshot]
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
permissions:
actions: read
pages: write
id-token: write
steps:
- id: deployment
uses: actions/deploy-pages@v4
name: ci
on:
pull_request:
branches: [ main, feature/*, hotfix/* ]
push:
branches: [ main, feature/*, hotfix/* ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: ./.github/actions/build
- run: npm run lint
shell: bash
working-directory: templates
- run: npm test
shell: bash
working-directory: templates
- run: dotnet test -c Release -f net8.0 --no-build --collect:"XPlat Code Coverage"
- run: dotnet test -c Release -f net7.0 --no-build --collect:"XPlat Code Coverage"
if: matrix.os == 'ubuntu-latest'
- run: dotnet test -c Release -f net6.0 --no-build --collect:"XPlat Code Coverage"
if: matrix.os == 'ubuntu-latest'
- uses: codecov/codecov-action@v4
if: matrix.os == 'ubuntu-latest'
- run: echo "DOTNET_DbgEnableMiniDump=1" >> $GITHUB_ENV
if: matrix.os == 'ubuntu-latest'
- run: dotnet run -c Release --no-build -f net8.0 --project src/docfx -- docs/docfx.json
- run: dotnet run -c Release --no-build -f net8.0 --project src/docfx -- samples/seed/docfx.json --output docs/_site/seed
- uses: actions/upload-pages-artifact@v3
if: matrix.os == 'ubuntu-latest'
with:
path: docs/_site
- uses: actions/upload-artifact@v4
if: ${{ failure() && matrix.os == 'ubuntu-latest' }}
with:
name: dump
path: /tmp/coredump*
snapshot:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: ./.github/actions/build
- run: dotnet build -c Release samples/extensions/build
- run: dotnet test -c Release -f net8.0 --no-build --filter Stage=Snapshot
working-directory: test/docfx.Snapshot.Tests
env:
SNAPSHOT_TEST: true
BUILD_SERVER: ${{ github.event_name != 'pull_request' }}
- uses: stefanzweifel/git-auto-commit-action@v5
if: github.event_name == 'pull_request'
with:
commit_message: 'test(snapshot): update snapshots ${{ github.sha }} for ${{ matrix.os }}'
publish-docs:
if: github.ref == 'refs/heads/main'
needs: [test, snapshot]
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
permissions:
actions: read
pages: write
id-token: write
steps:
- id: deployment
uses: actions/deploy-pages@v4
Loading