Merge branch 'main' into update_us_verifications_response_fields #2011
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches-ignore: | |
- deployment | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- 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/[email protected] | |
with: | |
workflow: CD | |
token: ${{ secrets.WORKFLOW_TOKEN }} |