Skip to content

Commit dee0343

Browse files
authored
Merge pull request #176 from umihico/feat/github-actions/2023-06-11
Add demo-test GitHub action
2 parents 0d4324f + 1873425 commit dee0343

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/workflows/demo-test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: demo-test
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
push:
7+
branches:
8+
- feat/github-actions**
9+
10+
jobs:
11+
demo-test:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Demo README's instructions
16+
run: |
17+
npm install -g serverless
18+
sls create --template-url "https://github.com/umihico/docker-selenium-lambda/tree/main" --path docker-selenium-lambda && cd $_
19+
sls deploy
20+
sls invoke --function demo |& tee /tmp/scraping-result.txt
21+
cat /tmp/scraping-result.txt | grep -q "This domain is for use in illustrative examples in documents"
22+
env:
23+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
24+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
25+
AWS_REGION: ${{ secrets.AWS_REGION }}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# docker-selenium-lambda
22

3+
![badge](https://github.com/umihico/docker-selenium-lambda/actions/workflows/demo-test.yml/badge.svg)
34
![badge](https://github.com/umihico/docker-selenium-lambda/actions/workflows/auto-update.yml/badge.svg)
45

56
This is minimum demo of headless chrome and selenium on container image on AWS Lambda

0 commit comments

Comments
 (0)