Skip to content

Commit 256e518

Browse files
committed
[CI] Add integration test workflow
1 parent b7c65a4 commit 256e518

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Integration Test
2+
on:
3+
workflow_call:
4+
push:
5+
branches: [main]
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}-integration-test
8+
cancel-in-progress: true
9+
jobs:
10+
integration-test:
11+
name: Integration Test
12+
runs-on: ubuntu-22.04
13+
timeout-minutes: 10
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
toolchain: [latest]
18+
steps:
19+
- name: Install Swift
20+
uses: vapor/swiftly-action@v0.1
21+
with:
22+
toolchain: ${{ matrix.toolchain }}
23+
env:
24+
SWIFTLY_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
- name: Checkout
26+
uses: actions/checkout@v4.2.2
27+
- name: Resolve Swift dependencies
28+
run: swift package resolve
29+
working-directory: ./IntegrationTests
30+
- name: Start Services
31+
run: docker compose up -d
32+
working-directory: ./IntegrationTests
33+
- name: Run Integration Tests
34+
run: swift test --parallel
35+
working-directory: ./IntegrationTests

0 commit comments

Comments
 (0)