swag-payments/.github/workflows/build-v2.yml

39 lines
792 B
YAML
Raw Normal View History

2022-01-28 10:34:24 +00:00
name: OpenAPI Spec CI
on:
pull_request:
branches:
- v2
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
2022-01-28 10:34:24 +00:00
- name: Setup Node
uses: actions/setup-node@v3
2022-01-28 10:34:24 +00:00
with:
node-version: '16'
- name: Cache Node Modules and NPM Cache
id: cache
uses: actions/cache@v3
2022-01-28 10:34:24 +00:00
with:
path: |
node_modules
~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Install deps
if: steps.cache.outputs.cache-hit != 'true'
run: npm install
- name: Run tests
run: npm test
- name: Bundle spec and build docsite
run: npm run build