revisions adjustment & remove C# preview features #3
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: Studio conventions | |
on: | |
push: | |
branches: | |
- v6.0 | |
pull_request: | |
branches: | |
- v6.0 | |
jobs: | |
conventions: | |
name: Studio Conventions | |
continue-on-error: true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Grep .Net version | |
run: | | |
dotnet_version=$(grep '<TargetFramework>' < src/Raven.Server/Raven.Server.csproj | tr -cd [:digit:].) | |
echo "DOTNET_VERSION=${dotnet_version}" >> $GITHUB_ENV | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '${{ env.DOTNET_VERSION }}' | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Build dotnet | |
run: dotnet build | |
- name: Install npm dependencies | |
run: npm install | |
working-directory: ./src/Raven.Studio | |
- name: Restore Studio | |
run: npm run restore | |
working-directory: ./src/Raven.Studio | |
- name: Lint Studio | |
if: always() | |
run: npm run lint | |
working-directory: ./src/Raven.Studio | |
- name: Prettier Studio | |
if: always() | |
run: | | |
branch=${GITHUB_BASE_REF:-$GITHUB_REF_NAME} | |
[[ ${branch:1:1} -lt 6 ]] && echo "skipping prettier for ravendb versions below 6.0" && exit 0 | |
npm run prettier | |
working-directory: ./src/Raven.Studio |