Skip to content

Commit 9830e6d

Browse files
committed
🥑 Integrate CI test pipeline for the GitHub Action
1 parent 0cd75e1 commit 9830e6d

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: 'Test LocalStack GitHub Actions Login'
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
build:
7+
name: 🚧 Build the GitHub Actions
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: ⚡️ Checkout the repository
11+
uses: actions/checkout@v3
12+
- name: 🚀 Install dependencies
13+
run: |
14+
yarn install --pure-lockfile
15+
- name: 🎉 Build the project
16+
run: |
17+
yarn run all
18+
19+
test:
20+
name: 🌐 Test the GitHub Actions
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: ⚡️ Checkout the repository
24+
uses: actions/checkout@v3
25+
26+
- name: ☁️ Start LocalStack
27+
run: |
28+
pip install pyopenssl -U
29+
docker pull localstack/localstack-pro:1.4
30+
pip install localstack
31+
DNS_ADDRESS=0 localstack start -d
32+
localstack wait -t 30
33+
pip install awscli-local[ver1]
34+
env:
35+
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
36+
37+
- name: 🤔 Login to LocalStack
38+
uses: ./
39+
with:
40+
email: ${{ secrets.LOCALSTACK_USERNAME }}
41+
password: ${{ secrets.LOCALSTACK_PASSWORD }}
42+
43+
- name: 🤩 Pull a Cloud Pod
44+
run: |
45+
localstack pod load iris-cloud-pod
46+
localstack pod list
47+
localstack logs
48+
localstack wait -t 15
49+
awslocal lambda list-functions

0 commit comments

Comments
 (0)