mirror of
https://github.com/mapillary/mapillary-js.git
synced 2026-01-25 14:07:28 +00:00
61 lines
1.2 KiB
YAML
61 lines
1.2 KiB
YAML
name: Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: "16.x"
|
|
|
|
- name: Install dependencies
|
|
run: yarn install --frozen-lockfile --ignore-scripts
|
|
|
|
- name: Setup
|
|
run: yarn setup
|
|
|
|
- name: Lint
|
|
run: yarn lint
|
|
|
|
- name: Build
|
|
run: yarn build
|
|
|
|
- name: Test
|
|
run: yarn test
|
|
doc:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: "16.x"
|
|
|
|
- name: Install dependencies
|
|
run: yarn install --frozen-lockfile --ignore-scripts
|
|
|
|
- name: Setup
|
|
run: yarn setup
|
|
|
|
- name: Install doc dependencies
|
|
run: |
|
|
yarn --cwd doc install && \
|
|
yarn --cwd doc install-mjs
|
|
|
|
- name: Lint
|
|
run: yarn --cwd doc ci
|
|
|
|
- name: Build API reference
|
|
run: |
|
|
yarn --cwd doc build-api && \
|
|
yarn --cwd doc clear-api
|
|
|
|
- name: Build doc website
|
|
run: yarn --cwd doc build
|