-
Notifications
You must be signed in to change notification settings - Fork 19
58 lines (47 loc) · 1.4 KB
/
sqlite-end-to-end-tests.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
53
54
55
56
57
58
name: SQLite End to End Tests
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
sqlite-end-to-end-tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/cache@v3
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- uses: pnpm/[email protected]
with:
version: 8.6.9
- uses: actions/setup-node@v3
with:
node-version: "18"
cache: "pnpm"
cache-dependency-path: src/pnpm-lock.yaml
- name: Install dependencies
run: pnpm i
- name: Build CLI tool
run: pnpm build
- name: Init and Import SQLite Chinook Database
working-directory: src/packages/end-to-end
run: |
pnpm import-database-sqlite
- name: Start and Test GW instance
working-directory: src/packages/end-to-end
timeout-minutes: 2
run: |
pnpm start-server &
sleep 3 &&
pnpm test-sqlite &&
killall node
env:
CI: true