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 d961ae7
Showing 1 changed file with 26 additions and 8 deletions.
34 changes: 26 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,13 @@ 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
needs: [unit_tests]
permissions:
deployments: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down Expand Up @@ -150,11 +153,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 +175,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 d961ae7

Please sign in to comment.