Skip to content

Commit 210020d

Browse files
Rework GitHub workflows
1 parent 4243a60 commit 210020d

File tree

5 files changed

+52
-60
lines changed

5 files changed

+52
-60
lines changed

.github/workflows/docs-changelog-generate.yaml renamed to .github/workflows/generate-changelog.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: docs-changelog-generate
1+
name: generate-changelog
22

33
on:
44
push:

.github/workflows/docs-stable.yaml renamed to .github/workflows/generate-gh-pages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: docs-stable
1+
name: generate-gh-pages
22

33
on:
44
push:
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: report-test-results
2+
3+
on:
4+
workflow_run:
5+
workflows: [ 'main' ]
6+
types:
7+
- completed
8+
9+
jobs:
10+
report:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
id-token: write
14+
contents: read
15+
issues: write
16+
pull-requests: write
17+
steps:
18+
- name: Download Artifacts
19+
uses: actions/download-artifact@v3
20+
- name: Display structure of downloaded files
21+
run: ls -R
22+
- name: Report tests results
23+
uses: AndreyAkinshin/test-reporter@0e2c48ebec2007001dd77dd4bcbcd450b96d5a38
24+
if: always()
25+
with:
26+
name: test-results
27+
path: "**/*.trx"
28+
reporter: dotnet-trx
29+
fail-on-error: true

.github/workflows/spellcheck.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/build.yaml renamed to .github/workflows/test.yaml

Lines changed: 21 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
name: build
1+
name: test
22

33
on:
44
pull_request:
55
push:
66

7-
permissions: write-all
8-
97
jobs:
108

11-
build-windows-core:
9+
test-windows-core:
1210
runs-on: windows-latest
1311
steps:
1412
- name: Disable Windows Defender
@@ -26,13 +24,13 @@ jobs:
2624
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
2725
./build.cmd InTestsCore -e
2826
- name: Upload test results
29-
uses: actions/upload-artifact@v2
27+
uses: actions/upload-artifact@v3
3028
if: always()
3129
with:
32-
name: build-windows-core-trx
30+
name: test-windows-core-trx
3331
path: "**/*.trx"
3432

35-
build-windows-full:
33+
test-windows-full:
3634
runs-on: windows-latest
3735
steps:
3836
- name: Disable Windows Defender
@@ -50,13 +48,13 @@ jobs:
5048
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
5149
./build.cmd InTestsFull -e
5250
- name: Upload test results
53-
uses: actions/upload-artifact@v2
51+
uses: actions/upload-artifact@v3
5452
if: always()
5553
with:
56-
name: build-windows-full-trx
54+
name: test-windows-full-trx
5755
path: "**/*.trx"
5856

59-
build-linux:
57+
test-linux:
6058
runs-on: ubuntu-latest
6159
steps:
6260
- uses: actions/checkout@v3
@@ -74,13 +72,13 @@ jobs:
7472
- name: Run task 'InTestsCore'
7573
run: ./build.cmd InTestsCore -e
7674
- name: Upload test results
77-
uses: actions/upload-artifact@v2
75+
uses: actions/upload-artifact@v3
7876
if: always()
7977
with:
80-
name: build-linux-trx
78+
name: test-linux-trx
8179
path: "**/*.trx"
8280

83-
build-macos:
81+
test-macos:
8482
runs-on: macos-13
8583
steps:
8684
- uses: actions/checkout@v3
@@ -91,28 +89,21 @@ jobs:
9189
- name: Run task 'InTestsCore'
9290
run: ./build.cmd InTestsCore -e
9391
- name: Upload test results
94-
uses: actions/upload-artifact@v2
92+
uses: actions/upload-artifact@v3
9593
if: always()
9694
with:
97-
name: build-macos-trx
95+
name: test-macos-trx
9896
path: "**/*.trx"
9997

100-
report:
101-
concurrency: ci-${{ github.ref }}
102-
needs: [build-windows-full, build-windows-core, build-linux, build-macos]
98+
docs-spellcheck:
10399
runs-on: ubuntu-latest
104-
if: always()
105100
steps:
106101
- uses: actions/checkout@v3
107-
- name: Download Artifacts
108-
uses: actions/download-artifact@v3
109-
- name: Display structure of downloaded files
110-
run: ls -R
111-
- name: Report tests results
112-
uses: AndreyAkinshin/test-reporter@0e2c48ebec2007001dd77dd4bcbcd450b96d5a38
113-
if: always()
102+
- uses: actions/setup-node@v1
103+
name: Setup node
114104
with:
115-
name: test-results
116-
path: "**/*.trx"
117-
reporter: dotnet-trx
118-
fail-on-error: true
105+
node-version: "16"
106+
- run: npm install -g cspell
107+
name: Install cSpell
108+
- run: cspell --config ./cSpell.json "docs/**/*.md" --no-progress
109+
name: Run cSpell

0 commit comments

Comments
 (0)