Skip to content

Commit db08755

Browse files
Merge pull request #242 from ITU-BDSA2024-GROUP10/fix-workflow-using-test
Fix workflow using test
2 parents b0591f2 + 85274a4 commit db08755

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/Create_tag_on_merge _to_main.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ jobs:
3131
run: dotnet build --no-restore Chirp/
3232

3333
- name: Test
34-
run: |
35-
export GitHub__ClientId="${{ secrets.GITHUBCLIENTID }}"
36-
export GitHub__ClientSecret="${{ secrets.GITHUBCLIENTSECRET }}"
37-
dotnet test --verbosity normal Chirp/
34+
working-directory: Chirp/
35+
env:
36+
authentication_github_clientId: ${{ secrets.GITHUBCLIENTID }}
37+
authentication_github_clientSecret: ${{ secrets.GITHUBCLIENTSECRET }}
38+
run: dotnet test --verbosity normal
3839

3940
# Get the latest tag from the repository
4041
- name: Get latest tag

.github/workflows/automatic-release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ jobs:
3939
run: dotnet build --no-restore Chirp/
4040

4141
- name: Test
42-
run: |
43-
export GitHub__ClientId="${{ secrets.GITHUBCLIENTID }}"
44-
export GitHub__ClientSecret="${{ secrets.GITHUBCLIENTSECRET }}"
45-
dotnet test --verbosity normal Chirp/
42+
working-directory: Chirp/
43+
env:
44+
authentication_github_clientId: ${{ secrets.GITHUBCLIENTID }}
45+
authentication_github_clientSecret: ${{ secrets.GITHUBCLIENTSECRET }}
46+
run: dotnet test --verbosity normal
4647

4748
# Get the latest tag from the repository
4849
- name: Get latest tag

0 commit comments

Comments
 (0)