-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1001 Bytes
/
lint.yaml
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Lint
on:
workflow_call:
secrets:
github-token:
required: true
description: |
The token to use for making authenticated requests to the GitHub API.
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- id: checkout
name: Checkout
uses: actions/checkout@v4
with:
token: ${{secrets.github-token || secrets.GITHUB_TOKEN}}
- id: setup-dotnet
name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
cache: true
cache-dependency-path: |
Glekcraft/packages.lock.json
packages/*/packages.lock.json
- id: restore-dependencies
name: Restore dependencies
run: dotnet restore
- id: lint
name: Lint
run: dotnet format --no-restore --verify-no-changes