Skip to content

Commit 14d6e82

Browse files
authored
Update ci.yml
Signed-off-by: Najaf Shaikh <ns4mail@gmail.com>
1 parent 792fd32 commit 14d6e82

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,39 @@ env:
1313
jobs:
1414
build-and-deploy:
1515
runs-on: ubuntu-latest
16-
16+
env:
17+
working-directory: ${{ github.workspace }}
18+
1719
steps:
1820
- name: Checkout code
1921
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
- name: Lint Code Base
25+
uses: github/super-linter@v4
26+
env:
27+
VALIDATE_ALL_CODEBASE: false
28+
FILTER_REGEX_INCLUDE: .*src/.*
29+
DEFAULT_BRANCH: master
30+
GITHUB_TOKEN: '${{ env.github-token }}'
2031

2132
- name: Set up .NET
22-
uses: actions/setup-dotnet@v4
33+
uses: actions/setup-dotnet@v3
2334
with:
2435
dotnet-version: '9.0.x'
2536

2637
- name: Restore dependencies
2738
run: dotnet restore
28-
39+
working-directory: '${{ env.working-directory }}'
40+
2941
- name: Build
3042
run: dotnet build --no-restore --configuration Release
31-
43+
working-directory: '${{ env.working-directory }}'
44+
3245
- name: Run tests
3346
run: dotnet test --no-build --verbosity normal
34-
47+
working-directory: '${{ env.working-directory }}'
48+
3549
- name: Set up Docker Buildx
3650
uses: docker/setup-buildx-action@v3
3751

0 commit comments

Comments
 (0)