Skip to content

Commit 5e2f703

Browse files
committed
Add GitHub Actions CI workflow
1 parent 10f25ed commit 5e2f703

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
9+
jobs:
10+
jasmine:
11+
runs-on: ubuntu-latest
12+
13+
defaults:
14+
run:
15+
working-directory: Jasmine
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
25+
- name: Install dependencies
26+
run: npm install
27+
28+
- name: Test
29+
run: npm test
30+
31+
dotnet:
32+
runs-on: ubuntu-latest
33+
34+
defaults:
35+
run:
36+
working-directory: SockstoreNet
37+
38+
steps:
39+
- uses: actions/checkout@v4
40+
41+
- name: Setup .NET
42+
uses: actions/setup-dotnet@v4
43+
with:
44+
dotnet-version: 9.0.x
45+
46+
- name: Restore
47+
run: dotnet restore
48+
49+
- name: Build
50+
run: dotnet build --no-restore
51+
52+
- name: Test
53+
run: dotnet test --no-build --verbosity normal

0 commit comments

Comments
 (0)