forked from ravendb/ravendb
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (44 loc) · 1.29 KB
/
studioConventions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Studio conventions
on:
push:
branches:
- v6.2
pull_request:
branches:
- v6.2
jobs:
conventions:
name: Studio Conventions
continue-on-error: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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@v4
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