implement timer for the quiz #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
preview-cmd: | | |
pip install awscli awscli-local | |
bash bin/deploy.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 }} |