-
Notifications
You must be signed in to change notification settings - Fork 19
56 lines (45 loc) · 1.32 KB
/
other-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
name: Other (Metadata & Scalars) End to End Tests
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
other-end-to-end-tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/cache@v4
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/action-setup@v4.0.0
with:
version: 9.11.0
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: "pnpm"
cache-dependency-path: src/pnpm-lock.yaml
- name: Install dependencies
run: pnpm i
- name: Build CLI tool
run: pnpm build
- name: Test Scalars
working-directory: src/packages/end-to-end
timeout-minutes: 2
run: |
pnpm test-scalars
- name: Test Metadata
working-directory: src/packages/end-to-end
timeout-minutes: 2
run: |
pnpm test-metadata
env:
CI: true