CRA -> Vite - frontend migratie #4881
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 .NET Core (Ubuntu) | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
branches: [ master ] | |
paths: | |
- 'starsky/**' | |
- '!starsky/starsky/clientapp/**' | |
- '!starsky/Dockerfile' | |
- '!starsky/docker_demo_setup.sh' | |
- '.github/workflows/**' | |
workflow_dispatch: | |
push: | |
branches: [release/*] | |
paths: | |
- '**.cshtml' | |
- '**.cs' | |
- '**.sln' | |
- '**.cake' | |
- '**.json' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
WEBSITE_SITE_NAME: "ci" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.414 | |
- 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: "BuildNetCore (Ubuntu)" | |
shell: bash | |
working-directory: ./starsky | |
run: bash build.sh --Target BuildNetCore --no-sonar --no-publish --no-dependencies --skip --no-logo | |
- name: "TestNetCore (Ubuntu)" | |
shell: bash | |
working-directory: ./starsky | |
run: bash build.sh --Target TestNetCore --skip --no-logo --no-publish | |
- name: "Set locale to: nl_NL.UTF-8" | |
run: | | |
export LANG="nl_NL.UTF-8" | |
sudo locale-gen nl_NL.UTF-8 | |
sudo update-locale LANG=nl_NL.UTF-8 | |
date | |
- name: "Locale TestNetCore [nl_NL] (Ubuntu)" | |
shell: bash | |
working-directory: ./starsky | |
run: | | |
export LANG="nl_NL.UTF-8" | |
bash build.sh --Target TestNetCore --skip --no-dependencies --no-publish --no-logo | |
trigger_pipe_release_desktop: | |
runs-on: ubuntu-latest | |
if: github.event_name != 'pull_request' | |
# needs nothing - no dependencies | |
steps: | |
- name: trigger release-on-tag-netcore-desktop-electron | |
shell: bash | |
env: | |
NOTE_READ_THIS_NOW: "Need a github token that has more rights otherwise it will be ignored" | |
run: | | |
curl \ | |
-H"authorization: Bearer ${{ secrets.WORKFLOW_GITHUB }}" \ | |
-X POST \ | |
-H "Accept: application/vnd.github.v3+json" \ | |
https://api.github.com/repos/${{ github.repository }}/actions/workflows/release-on-tag-netcore-desktop-electron.yml/dispatches \ | |
-d '{"ref":"master"}' -v |