-
-
Notifications
You must be signed in to change notification settings - Fork 80
30 lines (29 loc) · 1022 Bytes
/
test.yml
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
name: test
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request: { types: [opened, reopened, synchronize, ready_for_review] }
push: { branches: [ main ] }
jobs:
vapor-integration:
if: ${{ !(github.event.pull_request.draft || false) }}
runs-on: ubuntu-latest
container: swift:5.8-jammy
steps:
- name: Check out package
uses: actions/checkout@v3
with: { path: 'websocket-kit' }
- name: Check out Vapor
uses: actions/checkout@v3
with: { repository: 'vapor/vapor', path: 'vapor' }
- name: Use local package in Vapor
run: swift package --package-path vapor edit websocket-kit --path websocket-kit
- name: Run Vapor tests
run: swift test --package-path vapor
unit-tests:
uses: vapor/ci/.github/workflows/run-unit-tests.yml@reusable-workflows
with:
with_coverage: true
with_tsan: false
with_public_api_check: ${{ github.event_name == 'pull_request' }}