Skip to content

Commit 91cb8cb

Browse files
committed
Use armada workflow for .NET lint and test
1 parent 9d544d7 commit 91cb8cb

1 file changed

Lines changed: 8 additions & 48 deletions

File tree

.github/workflows/backend_lint_and_test.yml

Lines changed: 8 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -12,51 +12,11 @@ on:
1212
- main
1313

1414
jobs:
15-
build_api:
16-
runs-on: ubuntu-latest
17-
steps:
18-
- name: Checkout
19-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6
20-
21-
- name: Set up .NET
22-
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 #v5
23-
with:
24-
dotnet-version: "10.0.x"
25-
- name: Build project and dependencies
26-
working-directory: ./api
27-
run: dotnet build
28-
29-
test_api:
30-
runs-on: ubuntu-latest
31-
steps:
32-
- name: Checkout
33-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6
34-
35-
- name: Set up .NET
36-
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 #v5
37-
with:
38-
dotnet-version: "10.0.x"
39-
40-
- name: Build project and dependencies
41-
working-directory: ./api.Tests
42-
run: dotnet build -warnaserror
43-
44-
- name: Run tests
45-
working-directory: ./api.Tests
46-
run: dotnet test
47-
48-
check_formatting:
49-
runs-on: ubuntu-latest
50-
steps:
51-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6
52-
53-
- name: Setup .NET Core
54-
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 #v5
55-
with:
56-
dotnet-version: "10.0.x"
57-
58-
- name: Run csharpier format
59-
working-directory: ./api
60-
run: |
61-
dotnet tool restore
62-
dotnet csharpier check .
15+
api:
16+
permissions:
17+
contents: read
18+
uses: equinor/armada/.github/workflows/test_and_lint_dotnet_package.yml@main
19+
with:
20+
build_directory: api
21+
test_directory: api.Tests
22+
format_directory: api

0 commit comments

Comments
 (0)