File tree Expand file tree Collapse file tree 9 files changed +90
-5
lines changed
algorithm-exercises-csharp Expand file tree Collapse file tree 9 files changed +90
-5
lines changed Original file line number Diff line number Diff line change
1
+ name : Docker Image CI
2
+
3
+
4
+ on :
5
+ push :
6
+ branches : [ main, develop, feature/* ]
7
+ pull_request :
8
+ branches : [ main ]
9
+
10
+ permissions : read-all
11
+
12
+ jobs :
13
+
14
+ build :
15
+ name : Build & Test in Docker
16
+
17
+ runs-on : ubuntu-latest
18
+
19
+ steps :
20
+ - uses : actions/checkout@v4
21
+ - name : Build the Docker image
22
+ run : make compose/rebuild
23
+ - name : Run test in Docker image
24
+ run : make compose/run
25
+ - name : Tag Docker image
26
+ run : docker tag algorithm-exercises-csharp:latest algorithm-exercises-csharp:${{ github.sha }}
27
+
Original file line number Diff line number Diff line change 26
26
run : dotnet build --no-restore
27
27
- name : Test
28
28
run : dotnet test --no-build --verbosity normal
29
+ - name : Upload coverage reports to Codecov
30
+ uses : codecov/codecov-action@v4.0.1
31
+ with :
32
+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : gitleaks
2
+ on :
3
+ pull_request :
4
+ push :
5
+ workflow_dispatch :
6
+ schedule :
7
+ - cron : " 0 4 * * *" # run once a day at 4 AM
8
+ jobs :
9
+ scan :
10
+ name : gitleaks
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ with :
15
+ fetch-depth : 0
16
+ - uses : gitleaks/gitleaks-action@v2
17
+ env :
18
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
19
+ # GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}} # Only required for Organizations, not personal accounts.
Original file line number Diff line number Diff line change
1
+ name : Markdown Lint
2
+
3
+ on :
4
+ push :
5
+ branches : [ main, develop, feature/* ]
6
+ pull_request :
7
+ branches : [ main ]
8
+
9
+ permissions : read-all
10
+
11
+ jobs :
12
+ build :
13
+
14
+ runs-on : ubuntu-latest
15
+
16
+ strategy :
17
+ matrix :
18
+ os : [ubuntu-latest]
19
+ node-version : [20.x]
20
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21
+
22
+ steps :
23
+ - name : Checkout repository
24
+ uses : actions/checkout@v4
25
+
26
+ - name : Set up Node.js ${{ matrix.node-version }}
27
+ uses : actions/setup-node@v4
28
+ with :
29
+ node-version : ${{ matrix.node-version }}
30
+
31
+ - name : Install dependencies
32
+ run : npm install -g markdownlint-cli
33
+
34
+ - name : Lint
35
+ run : markdownlint '**/*.md' --ignore node_modules && echo '✔ Your code looks good.'
36
+
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ FROM node:20.2.0-alpine3.16 AS lint
8
8
ENV WORKDIR=/app
9
9
WORKDIR ${WORKDIR}
10
10
11
- COPY ./src ${WORKDIR}/src
11
+ COPY ./docs ${WORKDIR}/docs
12
12
RUN apk add --update --no-cache make
13
13
RUN npm install -g --ignore-scripts markdownlint-cli
14
14
Original file line number Diff line number Diff line change @@ -142,4 +142,3 @@ dotnet --version
142
142
### License
143
143
144
144
### Coverage
145
-
Original file line number Diff line number Diff line change 28
28
<PrivateAssets >all</PrivateAssets >
29
29
</PackageReference >
30
30
<PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.9.0" />
31
- <PackageReference Include =" MSTest.TestAdapter" Version =" 3.1 .1" />
32
- <PackageReference Include =" MSTest.TestFramework" Version =" 3.1 .1" />
31
+ <PackageReference Include =" MSTest.TestAdapter" Version =" 3.3 .1" />
32
+ <PackageReference Include =" MSTest.TestFramework" Version =" 3.3 .1" />
33
33
</ItemGroup >
34
34
35
35
<ItemGroup >
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ services:
12
12
profiles : ["testing"]
13
13
14
14
algorithm-exercises-csharp-mdlint :
15
- image : algorithm-exercises-ts :mdlint
15
+ image : algorithm-exercises-csharp :mdlint
16
16
build :
17
17
context : .
18
18
target : lint
You can’t perform that action at this time.
0 commit comments