-
Notifications
You must be signed in to change notification settings - Fork 72
81 lines (78 loc) · 2.08 KB
/
protocol-verify.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Verify Protocol Deployments
on:
pull_request:
branches:
- master
paths:
- 'packages/airnode-protocol/**'
- '!packages/airnode-protocol/package.json'
types: [opened, synchronize, reopened]
env:
DOCKER_BUILDKIT: 1
TARGET_NODE_VERSION: '18.19.1'
jobs:
pre-build:
name: Prepare build environment
runs-on: ubuntu-latest
steps:
- name: Clone airnode
uses: actions/checkout@v4
with:
# Required for changesets check. See: https://github.com/changesets/changesets/issues/517#issuecomment-813282523
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.TARGET_NODE_VERSION }}
cache: yarn
- name: Install Dependencies
run: yarn run bootstrap
- uses: actions/cache@v4
id: cache-pre-build
with:
path: ./*
key: pre-build-protocol-${{ github.sha }}
build:
name: Build Protocol
runs-on: ubuntu-latest
needs: pre-build
steps:
- uses: actions/cache@v4
id: cache-pre-build
with:
path: ./*
key: pre-build-protocol-${{ github.sha }}
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.TARGET_NODE_VERSION }}
cache: yarn
- name: Build
run: yarn run build:protocol
- uses: actions/cache@v4
id: cache-build
with:
path: ./*
key: build-protocol-${{ github.sha }}
verify-deployments:
name: verify deployments
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/cache@v4
id: restore-build
with:
path: ./*
key: build-protocol-${{ github.sha }}
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.TARGET_NODE_VERSION }}
cache: yarn
- run: yarn run test:protocol:verify-local
build-complete:
name: All tests passed
runs-on: ubuntu-latest
needs: [verify-deployments]
steps:
- run: exit 0