Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed May 31, 2024
1 parent f0bc3bd commit 8e01140
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,21 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
outputs:
chart-path: ${{ steps.build.outputs.chart-path }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: build local
id: build
- name: Build local
env:
GH_TOKEN: ${{ github.token }}
run: |
export KOTS_TAG=$(gh release view --repo replicatedhq/kots --json tagName -q .tagName)
make build
echo "chart-path=${{ github.workspace }}/admin-console-${KOTS_TAG#v}.tgz" >> "$GITHUB_OUTPUT"
mv admin-console-${KOTS_TAG#v}.tgz admin-console-chart.tgz
- name: Upload chart
uses: actions/upload-artifact@v4
with:
name: admin-console-chart
path: admin-console-chart.tgz

e2e:
runs-on: ubuntu-latest
Expand All @@ -34,10 +36,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download chart
uses: actions/download-artifact@v4
with:
name: admin-console-chart
- uses: ./.github/actions/e2e
with:
test-name: ${{ matrix.test }}
chart-path: ${{ needs.build.outputs.chart-path }}
chart-path: ${{ github.workspace }}/admin-console-chart.tgz
replicated-api-token: ${{ secrets.C11Y_MATRIX_TOKEN }}

# this job will validate that all the tests passed
Expand Down

0 comments on commit 8e01140

Please sign in to comment.