Skip to content

Merge pull request #152 from GiganticMinecraft/feat/addCommentModelTo… #262

Merge pull request #152 from GiganticMinecraft/feat/addCommentModelTo…

Merge pull request #152 from GiganticMinecraft/feat/addCommentModelTo… #262

Workflow file for this run

name: Lint Typespec OpenAPI Definitions
on:
push:
jobs:
check-format:
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install typespec
run: npm install -g @typespec/compiler
- name: Cache npm modules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install node_modules
run: npm ci
- name: Check format
run: tsp format --check "**/*.tsp"