CRA -> Vite - frontend migratie #5244
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Starsky Codecov ClientApp NetCore | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- 'starsky/**' | |
pull_request: | |
branches: | |
- master | |
paths: | |
- 'starsky/**' | |
- '.github/workflows/**' | |
- '!starsky/Dockerfile' | |
- '!starsky/docker_demo_setup.sh' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout repository on branch: ${{ github.REF }}' | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.HEAD_REF }} | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.414 | |
- name: Cache node modules clientapp (*nix) | |
uses: actions/cache@v3 | |
with: | |
# npm cache files are stored in `~/.npm` on Linux/macOS | |
path: ~/.npm | |
key: ${{ runner.os }}-build-clientapp-${{ hashFiles('./starsky/starsky/clientapp/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-clientapp- | |
- name: Cache nuget packages (*nix) | |
uses: actions/cache@v3 | |
with: | |
# nuget cache files are stored in `~/.nuget/packages` on Linux/macOS | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-build-netcore-${{ hashFiles('./starsky/starsky/nuget-packages-list.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-netcore- | |
- name: Build | |
shell: bash | |
working-directory: ./starsky | |
run: bash build.sh | |
- uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./starsky/starskytest/coverage-merge-cobertura.xml | |
flags: all # flags must match pattern ^[\w\,]+$ | |
name: codecov # optional |