Skip to content

Commit d270dbc

Browse files
committed
ci(workflow): add new test workflow
1 parent 2d9a9b0 commit d270dbc

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: test.yml
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
- name: Set up Docker Compose
17+
uses: docker/setup-compose-action@v1
18+
- name: Start Docker Environment
19+
run: |
20+
docker compose up -d
21+
- name: Run Tests
22+
run: |
23+
docker compose run test balder --working-dir tests --junit=result.xml
24+
- name: Cleanup Docker
25+
if: always()
26+
run: |
27+
docker compose down
28+

0 commit comments

Comments
 (0)