Skip to content

Commit 515240f

Browse files
authored
Merge branch 'main' into renovate/vstest-monorepo
2 parents e5a3fa0 + 5405400 commit 515240f

File tree

9 files changed

+90
-5
lines changed

9 files changed

+90
-5
lines changed

.github/workflows/docker-image.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+

.github/workflows/dotnet.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ jobs:
2626
run: dotnet build --no-restore
2727
- name: Test
2828
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 }}

.github/workflows/gitleaks.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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.

.github/workflows/markdown-lint.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ FROM node:20.2.0-alpine3.16 AS lint
88
ENV WORKDIR=/app
99
WORKDIR ${WORKDIR}
1010

11-
COPY ./src ${WORKDIR}/src
11+
COPY ./docs ${WORKDIR}/docs
1212
RUN apk add --update --no-cache make
1313
RUN npm install -g --ignore-scripts markdownlint-cli
1414

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,3 @@ dotnet --version
142142
### License
143143

144144
### Coverage
145-

algorithm-exercises-csharp/algorithm-exercises-csharp.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
<PrivateAssets>all</PrivateAssets>
2929
</PackageReference>
3030
<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" />
3333
</ItemGroup>
3434

3535
<ItemGroup>

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212
profiles: ["testing"]
1313

1414
algorithm-exercises-csharp-mdlint:
15-
image: algorithm-exercises-ts:mdlint
15+
image: algorithm-exercises-csharp:mdlint
1616
build:
1717
context: .
1818
target: lint

docs/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)