-
Notifications
You must be signed in to change notification settings - Fork 35
67 lines (61 loc) · 1.63 KB
/
lint-test-build.yaml
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
on:
push:
branches:
- '!main'
pull_request:
types:
- opened
- synchronize
name: PR Checks
jobs:
checkout:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- uses: ./.github/workflows/env-setup
- run: pnpm checks
openapi:
runs-on: ubuntu-latest
needs: checkout
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: ./.github/workflows/env-setup
- run: pnpm --filter openapi test
open-payments:
runs-on: ubuntu-latest
needs: checkout
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: ./.github/workflows/env-setup
- name: Generate open-payments types
run: pnpm --filter open-payments generate:types
- name: Check for newly generated open-payments types
uses: tj-actions/verify-changed-files@v14
id: verify-changed-files
with:
files: |
packages/open-payments/**/generated/*.ts
- name: Fail if missing new open-payments types
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: exit 1
- run: pnpm --filter open-payments build
- run: pnpm --filter open-payments test
http-signature-utils:
runs-on: ubuntu-latest
needs: checkout
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: ./.github/workflows/env-setup
- run: pnpm --filter http-signature-utils test
all-pr-checks-passed:
runs-on: ubuntu-latest
needs:
- openapi
- open-payments
- http-signature-utils
steps:
- run: echo 'PR Checks Passed'