-
Notifications
You must be signed in to change notification settings - Fork 42
36 lines (33 loc) · 1.2 KB
/
lint.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
name: lint
on: [push, pull_request]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: dotnet format
run: dotnet format --exclude Lib9c --exclude NineChronicles.RPC.Shared -v=d --no-restore --verify-no-changes
validate-appsettings-json:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install ajv-cli
run: yarn global add ajv-cli
- name: Validate appsettings.*.json
working-directory: NineChronicles.Headless.Executable
run: |
set -evx
FILES=(appsettings.mainnet.json appsettings.internal.json appsettings.previewnet.json appsettings.json)
for file in "${FILES[@]}"; do
ajv validate -s appsettings-schema.json -d "$file"
done
typos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check typos
uses: crate-ci/[email protected]