forked from polkadot-api/polkadot-api
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.06 KB
/
ci.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
name: CI
on:
pull_request:
merge_group:
workflow_dispatch:
jobs:
build:
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-${{ matrix.node-version }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-${{ matrix.node-version }}-turbo-
- uses: pnpm/action-setup@v3
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install deps
run: pnpm install
- name: Build core
run: pnpm turbo build-core --cache-dir=.turbo
- name: Install papi
run: pnpm install
- name: Build external
run: pnpm build-external
- name: Lint
run: pnpm lint
- name: Test
run: pnpm test
- name: Run Integration Tests
run: pnpm test:ci