Skip to content

Commit

Permalink
Merge pull request #61 from NipunaRanasinghe/main
Browse files Browse the repository at this point in the history
Fix working directory to run tests in workflows
  • Loading branch information
NipunaRanasinghe authored Sep 1, 2023
2 parents fc1d435 + 88123b0 commit 80cd689
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ jobs:

# Test Ballerina Project
- name: Ballerina Test
run: bal test ./ballerina --test-report --code-coverage --coverage-format=xml
working-directory: ./ballerina
run: bal test --test-report --code-coverage --coverage-format=xml
env:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/daily-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ jobs:

# Test Ballerina Project
- name: Ballerina Test
run: bal test ./ballerina --test-report --code-coverage --coverage-format=xml
working-directory: ./ballerina
run: bal test --test-report --code-coverage --coverage-format=xml
env:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ jobs:

# Test Ballerina Project
- name: Ballerina Test
working-directory: ./ballerina
# tests will be skipped if the PR is from a forked repository (as the secrets are not available)
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
run: bal test ./ballerina --test-report --code-coverage --coverage-format=xml
run: bal test --test-report --code-coverage --coverage-format=xml
env:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
Expand Down

0 comments on commit 80cd689

Please sign in to comment.