-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (36 loc) · 1.03 KB
/
on-push.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
name: On Push
on: [push]
jobs:
lint-commit:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Lint Commit Messages
uses: wagoid/commitlint-github-action@v6
with:
configFile: './.commitlintrc.yml'
firstParent: false
failOnWarnings: true
lint-test-code:
needs: lint-commit
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup .NET Environment
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.101
- name: Restore .NET Tools
run: dotnet tool restore --tool-manifest ./.config/dotnet-tools.json
- name: Restore .NET Projects
run: dotnet restore
- name: Run F# Linter
run: dotnet fantomas -r --check ./
- name: Run Tests
run: dotnet test