-
Notifications
You must be signed in to change notification settings - Fork 132
34 lines (30 loc) · 921 Bytes
/
demo-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: demo-test
on:
workflow_dispatch:
schedule:
- cron: "0 1 * * *"
push:
branches:
- feat/github-actions**
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-selenium-lambda/tree/main" --path docker-selenium-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"