-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (36 loc) · 1.1 KB
/
Copy pathtest.yml
File metadata and controls
41 lines (36 loc) · 1.1 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
39
40
41
name: 'Test LocalStack GitHub Actions Login'
on: [ push, pull_request ]
jobs:
build:
name: 🚧 Build the GitHub Actions
runs-on: ubuntu-latest
steps:
- name: ⚡️ Checkout the repository
uses: actions/checkout@v3
- name: 🚀 Install dependencies
run: |
yarn install --pure-lockfile
- name: 🎉 Build the project
run: |
yarn run all
test:
name: 🌐 Test the GitHub Actions
runs-on: ubuntu-latest
steps:
- name: ⚡️ Checkout the repository
uses: actions/checkout@v3
- name: ☁️ Start LocalStack
run: |
pip install pyopenssl -U
docker pull localstack/localstack-pro:1.4
pip install localstack
DNS_ADDRESS=0 localstack start -d
localstack wait -t 30
pip install awscli-local[ver1]
env:
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
- name: 🤔 Login to LocalStack
uses: ./
with:
email: ${{ secrets.LOCALSTACK_USERNAME }}
password: ${{ secrets.LOCALSTACK_PASSWORD }}