Skip to content

Commit f2457f9

Browse files
committed
add a github action workflow to run tests
1 parent 4fbf32d commit f2457f9

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: LocalStack Dagger Module Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
name: Run Tests
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Check out repository
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: '3.10'
22+
cache: 'pip'
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install boto3 requests dagger-io
28+
29+
- name: "Set up Dagger"
30+
id: "setup-dagger"
31+
uses: "camptocamp/setup-dagger@v1"
32+
with:
33+
module-path: "."
34+
35+
- name: "Run tests"
36+
run: |
37+
cd tests
38+
dagger call all --auth-token env:LOCALSTACK_AUTH_TOKEN
39+
env:
40+
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}

0 commit comments

Comments
 (0)