demo-test #293
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: demo-test | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
push: | |
branches: | |
- run-demo-test** | |
permissions: | |
id-token: write | |
contents: read | |
concurrency: | |
group: deploy-prod-stack | |
jobs: | |
demo-test: | |
runs-on: ubuntu-latest | |
env: | |
AWS_REGION: ap-northeast-1 | |
steps: | |
- uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-region: ${{ env.AWS_REGION }} | |
role-to-assume: ${{ secrets.AWS_ROLE_ARN }} | |
- name: Demo README's instructions | |
run: | | |
npm install -g serverless@^3 | |
sls create --template-url "https://github.com/umihico/docker-playwright-lambda/tree/main" --path docker-playwright-lambda && cd $_ | |
sls deploy | |
sls invoke --function demo |& tee /tmp/scraping-result.txt | |
cat /tmp/scraping-result.txt | grep -q "This domain is for use in illustrative examples in documents" |