Skip to content

Commit

Permalink
fix: refactor vars
Browse files Browse the repository at this point in the history
  • Loading branch information
zkayyali812 committed Aug 27, 2024
1 parent c5d9dbb commit 9cbcd45
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
12 changes: 10 additions & 2 deletions .github/actions/all-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ runs:
echo "GIT_SHA=$(git rev-parse "$GITHUB_SHA")" >> "$GITHUB_ENV"
- name: Common tests
env:
TEST_RESULTS_AGGREGATOR_USERNAME: ${{ env.TEST_RESULTS_AGGREGATOR_USERNAME }}
TEST_RESULTS_AGGREGATOR_PASSWORD: ${{ env.TEST_RESULTS_AGGREGATOR_PASSWORD }}
TEST_RESULTS_AGGREGATOR_URL: ${{ env.TEST_RESULTS_AGGREGATOR_URL }}
uses: ./.github/actions/common-tests

- name: Long-running tests
Expand All @@ -20,12 +24,16 @@ runs:
shell: bash
run: >-
http --check-status --ignore-stdin
--auth "${{ vars.TEST_RESULTS_AGGREGATOR_USERNAME }}:${{ secrets.TEST_RESULTS_AGGREGATOR_PASSWORD }}"
-f POST "${{ vars.TEST_RESULTS_AGGREGATOR_URL }}/api/results/upload/"
--auth "${{ env.TEST_RESULTS_AGGREGATOR_USERNAME }}:${{ env.TEST_RESULTS_AGGREGATOR_PASSWORD }}"
-f POST "${{ env.TEST_RESULTS_AGGREGATOR_URL }}/api/results/upload/"
[email protected]
component_name=eda
git_commit_sha=${{ env.GIT_SHA }}
git_repository_url="https://github.com/${{ github.repository }}"
- name: e2e tests
env:
TEST_RESULTS_AGGREGATOR_USERNAME: ${{ env.TEST_RESULTS_AGGREGATOR_USERNAME }}
TEST_RESULTS_AGGREGATOR_PASSWORD: ${{ env.TEST_RESULTS_AGGREGATOR_PASSWORD }}
TEST_RESULTS_AGGREGATOR_URL: ${{ env.TEST_RESULTS_AGGREGATOR_URL }}
uses: ./.github/actions/e2e-tests
4 changes: 2 additions & 2 deletions .github/actions/common-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ runs:
shell: bash
run: >-
http --check-status --ignore-stdin
--auth "${{ vars.TEST_RESULTS_AGGREGATOR_USERNAME }}:${{ secrets.TEST_RESULTS_AGGREGATOR_PASSWORD }}"
-f POST "${{ vars.TEST_RESULTS_AGGREGATOR_URL }}/api/results/upload/"
--auth "${{ env.TEST_RESULTS_AGGREGATOR_USERNAME }}:${{ env.TEST_RESULTS_AGGREGATOR_PASSWORD }}"
-f POST "${{ env.TEST_RESULTS_AGGREGATOR_URL }}/api/results/upload/"
[email protected]
component_name=eda
git_commit_sha=${{ env.GIT_SHA }}
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/e2e-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ runs:
shell: bash
run: >-
http --check-status --ignore-stdin
--auth "${{ vars.TEST_RESULTS_AGGREGATOR_USERNAME }}:${{ secrets.TEST_RESULTS_AGGREGATOR_PASSWORD }}"
-f POST "${{ vars.TEST_RESULTS_AGGREGATOR_URL }}/api/results/upload/"
--auth "${{ env.TEST_RESULTS_AGGREGATOR_USERNAME }}:${{ env.TEST_RESULTS_AGGREGATOR_PASSWORD }}"
-f POST "${{ env.TEST_RESULTS_AGGREGATOR_URL }}/api/results/upload/"
[email protected]
component_name=eda
git_commit_sha=${{ env.GIT_SHA }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: All tests
env:
TEST_RESULTS_AGGREGATOR_USERNAME: ${{ vars.TEST_RESULTS_AGGREGATOR_USERNAME }}
TEST_RESULTS_AGGREGATOR_PASSWORD: ${{ secrets.TEST_RESULTS_AGGREGATOR_PASSWORD }}
TEST_RESULTS_AGGREGATOR_URL: ${{ vars.TEST_RESULTS_AGGREGATOR_URL }}
uses: ./.github/actions/all-tests

- name: Upload coverage to Codecov
Expand Down

0 comments on commit 9cbcd45

Please sign in to comment.