Skip to content

feat(ci): integrate ci analytics #34

feat(ci): integrate ci analytics

feat(ci): integrate ci analytics #34

Workflow file for this run

name: 'Create Preview on Pull Request'
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened]
jobs:
localstack:
permissions: write-all
name: Setup LocalStack Preview
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: LocalStack Preview
uses: LocalStack/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
state-backend: ephemeral
state-action: start
include-preview: 'true'
install-awslocal: 'true'
extension-auto-install: 'localstack-extension-mailhog'
preview-cmd: |
pip install awscli awscli-local
bash bin/deploy.sh
bash bin/seed.sh
distributionId=$(awslocal cloudfront list-distributions | jq -r '.DistributionList.Items[0].Id');
echo LS_PREVIEW_URL=$AWS_ENDPOINT_URL/cloudfront/$distributionId/ >> $GITHUB_ENV;
env:
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}