Repair the bug of failing to switch the default language on the homep… #42
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: "build and test" | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'host/**/*.cs' | |
- 'host/**/*.cshtml' | |
- 'host/**/*.csproj' | |
- 'host/**/*.razor' | |
- 'src/**/*.cs' | |
- 'src/**/*.cshtml' | |
- 'src/**/*.csproj' | |
- 'src/**/*.razor' | |
- 'test/**/*.cs' | |
- 'test/**/*.csproj' | |
- 'Directory.Build.props' | |
pull_request: | |
paths: | |
- 'host/**/*.cs' | |
- 'host/**/*.cshtml' | |
- 'host/**/*.csproj' | |
- 'host/**/*.razor' | |
- 'src/**/*.cs' | |
- 'src/**/*.cshtml' | |
- 'src/**/*.csproj' | |
- 'src/**/*.razor' | |
- 'test/**/*.cs' | |
- 'test/**/*.csproj' | |
- 'Directory.Build.props' | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
permissions: | |
contents: read | |
jobs: | |
build-test: | |
runs-on: ubuntu-latest | |
if: ${{ !github.event.pull_request.draft }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-dotnet@master | |
with: | |
dotnet-version: 7.0.100 | |
- name: chown | |
run: | | |
sudo chown -R $USER:$USER /home/runneradmin | |
- name: Build All | |
run: ./build-all.ps1 | |
working-directory: ./build | |
shell: pwsh | |
- name: Test All | |
run: ./test-all.ps1 | |
working-directory: ./build | |
shell: pwsh | |
- name: Codecov | |
uses: codecov/codecov-action@v2 |