-
Notifications
You must be signed in to change notification settings - Fork 142
38 lines (34 loc) · 1.02 KB
/
check.yml
File metadata and controls
38 lines (34 loc) · 1.02 KB
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
35
36
37
38
name: check
on:
push:
branches-ignore:
- main
workflow_dispatch:
permissions:
id-token: write
contents: read
concurrency:
group: deploy-prod-stack
jobs:
check:
runs-on: ubuntu-latest
env:
AWS_REGION: ap-northeast-1
steps:
- uses: actions/checkout@v4
- uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
- name: Install Serverless Framework
run: npm install -g serverless@^3
- name: Wait for CloudFormation stack to be updated
run: aws cloudformation wait stack-update-complete --stack-name="docker-selenium-lambda-prod" || true
- name: Deploy
run: sls deploy
- name: Invoke
run: sls invoke --function demo |& tee /tmp/scraping-result.txt
- name: Check
run: cat /tmp/scraping-result.txt | grep -q "This domain is for use in documentation examples"
- name: Clean up (ECR costs)
run: sls remove