External code editor linking #1170
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v6 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24.x | |
| cache: 'npm' | |
| registry-url: 'https://registry.npmjs.org/' | |
| - name: Install Dependencies | |
| run: npm ci | |
| - name: Build PlayCanvas Editor | |
| run: npm run build | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v6 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24.x | |
| cache: 'npm' | |
| registry-url: 'https://registry.npmjs.org/' | |
| - name: Install Dependencies | |
| run: npm ci | |
| - name: Install Editor API Module Dependencies | |
| run: npm ci --prefix modules/editor-api | |
| - name: Build Editor API Module | |
| run: npm run build --prefix modules/editor-api | |
| - name: Run ESLint | |
| run: npm run lint | |
| - name: Run typecheck for Editor API module | |
| run: npm run type:check:api | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v6 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24.x | |
| cache: 'npm' | |
| registry-url: 'https://registry.npmjs.org/' | |
| - name: Install Dependencies | |
| run: npm ci | |
| - name: Install Editor API Module Dependencies | |
| run: npm ci --prefix modules/editor-api | |
| - name: Run Editor Tests | |
| run: npm test | |
| - name: Run Editor API Module Tests | |
| run: npm run test:api |