Skip to content

Commit

Permalink
REPL CI Alias for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Nov 11, 2023
1 parent c619ccf commit 4df5993
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ jobs:
name: Integration tests (${{matrix.os}}, node ${{matrix.node}})
path: '**/junit-*.xml'

# Deployment steps taken from https://github.com/colinwilson/static-site-to-vercel/blob/master/.github/workflows/deploy-preview.yml
repl_build:
name: Build REPL
runs-on: ubuntu-latest
Expand Down Expand Up @@ -150,11 +151,18 @@ jobs:
- run: yarn build
- run: yarn build-native-wasm
- run: yarn workspace @parcel/repl build
- name: Upload REPL
uses: actions/upload-artifact@v2
with:
name: REPL
path: 'packages/dev/repl/dist'
# - name: Upload REPL
# uses: actions/upload-artifact@v2
# with:
# name: REPL
# path: 'packages/dev/repl/dist'
- name: Start Deployment
uses: bobheadxi/[email protected]
id: deployment
with:
step: start
token: ${{ secrets.GITHUB_TOKEN }}
env: Preview
- name: Deploy to Vercel
uses: amondnet/vercel-action@v25
id: vercel-action
Expand All @@ -165,9 +173,17 @@ jobs:
github-comment: false
working-directory: packages/dev/repl
# vercel-args: '--prod'
# alias-domains: |
# staging.angular.vercel-action.amond.dev
# pr-{{PR_NUMBER}}.angular.vercel-action.amond.dev
alias-domains: |
pr-{{PR_NUMBER}}.parcel2-repl.vercel.app
- name: Update Deployment Status
uses: bobheadxi/[email protected]
if: always()
with:
step: finish
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
env_url: ${{ steps.vercel-action.outputs.preview-url }}

test_report:
name: Test report
Expand Down

0 comments on commit 4df5993

Please sign in to comment.