mirror of
https://github.com/zerotier/zerotier-one-api-spec.git
synced 2026-05-22 16:29:58 -07:00
50 lines
982 B
YAML
50 lines
982 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
jobs:
|
|
build_lint_etc:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 18
|
|
cache: 'npm'
|
|
|
|
- run: npm ci
|
|
- run: npm run build
|
|
|
|
- name: Run tests
|
|
run: npm test
|
|
|
|
- name: Archive built docs html
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: index.html
|
|
path: dist/index.html
|
|
|
|
- name: Archive built openapi spec
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: openapi.yaml
|
|
path: tsp-output/@typespec/openapi3/openapi.yaml
|
|
|
|
- name: Archive built json schema
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: json-schema.json
|
|
path: tsp-output/@typespec/json-schema/json-schema.json
|