Skip to content

Commit 3058219

Browse files
committed
Added gitlab ci
1 parent 081315c commit 3058219

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

generators/ci-cd/generator.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ export default class extends CiCdGenerator {
7070
condition: ctx => ctx.ciType === GITHUB,
7171
templates: ['.github/workflows/dotnet.yml']
7272
},
73+
{
74+
condition: ctx => ctx.ciType === GITLAB,
75+
templates: ['.gitlab-ci.yml']
76+
},
7377
],
7478
},
7579
context: this,
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
image: mcr.microsoft.com/dotnet/sdk:6.0
2+
3+
before_script:
4+
- dotnet --info
5+
- curl -sL https://deb.nodesource.com/setup_12.x | bash -
6+
- apt-get install -y nodejs
7+
- node --version
8+
- dotnet restore
9+
10+
build:
11+
stage: build
12+
script:
13+
- dotnet build --no-restore
14+
15+
tests:
16+
stage: test
17+
script:
18+
- dotnet test --no-restore

0 commit comments

Comments
 (0)