-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (39 loc) · 1.05 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
43
44
45
46
47
name: CI
on:
push:
branches-ignore:
- deployment
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: am I pretty?
shell: bash
run: |
set -x
npm i prettier
npm run pretty
- name: integration tests
shell: bash
run: |
npm run docsTest
- name: run spectral
uses: stoplightio/spectral-action@latest
with:
file_glob: "./lob-api-public.yml"
repo_token: ${{ github.token }}
event_name: ${{ github.event_name }}
- name: run contract tests
uses: ./actions/contract_tests
continue-on-error: true
env:
LOB_API_TEST_TOKEN: ${{ secrets.LOB_API_TEST_TOKEN }}
LOB_API_LIVE_TOKEN: ${{ secrets.LOB_API_LIVE_TOKEN }}
- name: invoke build
if: ${{ github.ref == 'refs/heads/main' }}
uses: benc-uk/workflow-dispatch@v1
with:
workflow: CD
token: ${{ secrets.WORKFLOW_TOKEN }}