swag-payments/.github/workflows/build-v2.yml
renovate[bot] 2f5e7a5ed4
Update actions/cache action to v3 (#36)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-05 14:29:02 +03:00

39 lines
792 B
YAML

name: OpenAPI Spec CI
on:
pull_request:
branches:
- v2
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Cache Node Modules and NPM Cache
id: cache
uses: actions/cache@v3
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