-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.15 KB
/
integration.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
37
38
39
40
41
42
43
44
45
name: continuous integration
on:
workflow_dispatch:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
integration:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Run megalinter
uses: oxsecurity/megalinter@v7
- name: Restore dotnet tools
run: dotnet tool restore
- name: Test for outdated dependencies
run: dotnet outdated --fail-on-updates
working-directory: src
- name: SonarCloud configuration
run: dotnet sonarscanner begin /o:arwynfr /k:ArwynFr_dotnet-integration-testing /d:sonar.host.url=https://sonarcloud.io
env:
SONAR_TOKEN: ${{ secrets.sonar_token }}
- name: Run automated tests
run: dotnet test --settings runsettings.xml --results-directory TestResults
working-directory: src/ArwynFr.IntegrationTesting.Tests
- name: SonarCloud analyze
run: dotnet sonarscanner end
- name: Continuous integration
run: gh pr merge --squash --auto
env:
GH_TOKEN: ${{ github.token }}