-
-
Notifications
You must be signed in to change notification settings - Fork 69
52 lines (38 loc) · 969 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Test Packages
on:
push: {}
pull_request: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
test:
name: Test Sources
runs-on: macos-12
timeout-minutes: 30
steps:
- name: Checkout Main
uses: actions/checkout@v3
# Build the Library
- name: Swift Resolve
run: swift package resolve
- name: Swift Build
run: swift build
# Start Test Server
- uses: pnpm/action-setup@v2
with:
version: 8.6.6
- name: Install Dependencies
run: pnpm i --frozen-lockfile
- name: Setup Node Environment
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- name: Start Test Server
run: pnpm run --dir server start &
- name: Wait for Server to Start
run: |
sleep 5
# Perform Tests
- name: Test Package
run: swift test