We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 081315c commit 3058219Copy full SHA for 3058219
generators/ci-cd/generator.mjs
@@ -70,6 +70,10 @@ export default class extends CiCdGenerator {
70
condition: ctx => ctx.ciType === GITHUB,
71
templates: ['.github/workflows/dotnet.yml']
72
},
73
+ {
74
+ condition: ctx => ctx.ciType === GITLAB,
75
+ templates: ['.gitlab-ci.yml']
76
+ },
77
],
78
79
context: this,
generators/ci-cd/templates/.gitlab-ci.yml.ejs
@@ -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
18
+ - dotnet test --no-restore
0 commit comments