Skip to content

Commit c171440

Browse files
authored
Update dotnet.yml
1 parent 12f2360 commit c171440

File tree

1 file changed

+134
-2
lines changed

1 file changed

+134
-2
lines changed

.github/workflows/dotnet.yml

Lines changed: 134 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,143 @@ jobs:
3131
path: /home/runner/work/CSharpToJavaScript/CSharpToJavaScript/CSharpToJavaScript/bin/Debug/net8.0/
3232
if-no-files-found: error
3333
compression-level: 0
34-
test:
34+
test-ubuntu:
3535
needs: build
36-
name: Test build
36+
name: Test build on ubuntu-latest
3737
runs-on: ubuntu-latest
3838

39+
steps:
40+
- uses: actions/checkout@v4
41+
- uses: actions/download-artifact@v4
42+
with:
43+
name: cstojs-artifact
44+
path: ~/artifact/
45+
- name: Display structure of downloaded files
46+
run: ls -R ~/artifact/
47+
- name: Clone CSTOJS_Tests
48+
uses: whyakari/github-repo-action@v3.1
49+
with:
50+
owner: TiLied
51+
repository: CSTOJS_Tests
52+
branch: 'master'
53+
- name: Access cloned repository content
54+
run: ls -R CSTOJS_Tests
55+
- name: Setup .NET
56+
uses: actions/setup-dotnet@v4
57+
with:
58+
dotnet-version: 8.0.x
59+
- name: List refs
60+
run: dotnet list CSTOJS_Tests/CSTOJS_Tests/CSTOJS_Tests.csproj reference
61+
- name: Delete reference
62+
run: dotnet remove CSTOJS_Tests/CSTOJS_Tests/CSTOJS_Tests.csproj reference "..\..\CSharpToJavaScript\CSharpToJavaScript\CSharpToJavaScript.csproj"
63+
- name: Add reference
64+
run: dotnet add CSTOJS_Tests/CSTOJS_Tests/CSTOJS_Tests.csproj reference /home/runner/work/CSharpToJavaScript/CSharpToJavaScript/CSharpToJavaScript/CSharpToJavaScript.csproj
65+
- name: Run tests
66+
run: dotnet test CSTOJS_Tests/CSTOJS_Tests/CSTOJS_Tests.csproj
67+
test-windows:
68+
needs: build
69+
name: Test build on windows-latest
70+
runs-on: windows-latest
71+
72+
steps:
73+
- uses: actions/checkout@v4
74+
- uses: actions/download-artifact@v4
75+
with:
76+
name: cstojs-artifact
77+
path: ~/artifact/
78+
- name: Display structure of downloaded files
79+
run: ls -R ~/artifact/
80+
- name: Clone CSTOJS_Tests
81+
uses: whyakari/github-repo-action@v3.1
82+
with:
83+
owner: TiLied
84+
repository: CSTOJS_Tests
85+
branch: 'master'
86+
- name: Access cloned repository content
87+
run: ls -R CSTOJS_Tests
88+
- name: Setup .NET
89+
uses: actions/setup-dotnet@v4
90+
with:
91+
dotnet-version: 8.0.x
92+
- name: List refs
93+
run: dotnet list CSTOJS_Tests/CSTOJS_Tests/CSTOJS_Tests.csproj reference
94+
- name: Delete reference
95+
run: dotnet remove CSTOJS_Tests/CSTOJS_Tests/CSTOJS_Tests.csproj reference "..\..\CSharpToJavaScript\CSharpToJavaScript\CSharpToJavaScript.csproj"
96+
- name: Add reference
97+
run: dotnet add CSTOJS_Tests/CSTOJS_Tests/CSTOJS_Tests.csproj reference /home/runner/work/CSharpToJavaScript/CSharpToJavaScript/CSharpToJavaScript/CSharpToJavaScript.csproj
98+
- name: Run tests
99+
run: dotnet test CSTOJS_Tests/CSTOJS_Tests/CSTOJS_Tests.csproj
100+
test-ubuntu-arm:
101+
needs: build
102+
name: Test build on ubuntu-24.04-arm
103+
runs-on: ubuntu-24.04-arm
104+
105+
steps:
106+
- uses: actions/checkout@v4
107+
- uses: actions/download-artifact@v4
108+
with:
109+
name: cstojs-artifact
110+
path: ~/artifact/
111+
- name: Display structure of downloaded files
112+
run: ls -R ~/artifact/
113+
- name: Clone CSTOJS_Tests
114+
uses: whyakari/github-repo-action@v3.1
115+
with:
116+
owner: TiLied
117+
repository: CSTOJS_Tests
118+
branch: 'master'
119+
- name: Access cloned repository content
120+
run: ls -R CSTOJS_Tests
121+
- name: Setup .NET
122+
uses: actions/setup-dotnet@v4
123+
with:
124+
dotnet-version: 8.0.x
125+
- name: List refs
126+
run: dotnet list CSTOJS_Tests/CSTOJS_Tests/CSTOJS_Tests.csproj reference
127+
- name: Delete reference
128+
run: dotnet remove CSTOJS_Tests/CSTOJS_Tests/CSTOJS_Tests.csproj reference "..\..\CSharpToJavaScript\CSharpToJavaScript\CSharpToJavaScript.csproj"
129+
- name: Add reference
130+
run: dotnet add CSTOJS_Tests/CSTOJS_Tests/CSTOJS_Tests.csproj reference /home/runner/work/CSharpToJavaScript/CSharpToJavaScript/CSharpToJavaScript/CSharpToJavaScript.csproj
131+
- name: Run tests
132+
run: dotnet test CSTOJS_Tests/CSTOJS_Tests/CSTOJS_Tests.csproj
133+
test-macos:
134+
needs: build
135+
name: Test build on macos-13
136+
runs-on: macos-13
137+
138+
steps:
139+
- uses: actions/checkout@v4
140+
- uses: actions/download-artifact@v4
141+
with:
142+
name: cstojs-artifact
143+
path: ~/artifact/
144+
- name: Display structure of downloaded files
145+
run: ls -R ~/artifact/
146+
- name: Clone CSTOJS_Tests
147+
uses: whyakari/github-repo-action@v3.1
148+
with:
149+
owner: TiLied
150+
repository: CSTOJS_Tests
151+
branch: 'master'
152+
- name: Access cloned repository content
153+
run: ls -R CSTOJS_Tests
154+
- name: Setup .NET
155+
uses: actions/setup-dotnet@v4
156+
with:
157+
dotnet-version: 8.0.x
158+
- name: List refs
159+
run: dotnet list CSTOJS_Tests/CSTOJS_Tests/CSTOJS_Tests.csproj reference
160+
- name: Delete reference
161+
run: dotnet remove CSTOJS_Tests/CSTOJS_Tests/CSTOJS_Tests.csproj reference "..\..\CSharpToJavaScript\CSharpToJavaScript\CSharpToJavaScript.csproj"
162+
- name: Add reference
163+
run: dotnet add CSTOJS_Tests/CSTOJS_Tests/CSTOJS_Tests.csproj reference /home/runner/work/CSharpToJavaScript/CSharpToJavaScript/CSharpToJavaScript/CSharpToJavaScript.csproj
164+
- name: Run tests
165+
run: dotnet test CSTOJS_Tests/CSTOJS_Tests/CSTOJS_Tests.csproj
166+
test-macos-arm:
167+
needs: build
168+
name: Test build on macos-latest
169+
runs-on: macos-latest
170+
39171
steps:
40172
- uses: actions/checkout@v4
41173
- uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)