Add typescript support for new dish plugin #2853
This file contains 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: Run linter, tests and type check | |
on: push | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.16.0 | |
registry-url: https://registry.npmjs.org/ | |
- run: | | |
npm ci | |
npm run lint:ci | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20.16.0 | |
registry-url: https://registry.npmjs.org/ | |
- run: | | |
npm ci | |
npm run test | |
teste2e: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.16.0 | |
- name: Install dependencies | |
run: npm ci | |
- name: Build snowbox (started by playwright by itself) | |
run: npm run snowbox:build | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run Playwright tests | |
run: npm run test:e2e | |
- uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 | |
type-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20.16.0 | |
registry-url: https://registry.npmjs.org/ | |
- run: | | |
npm ci | |
npm run tsc:ci |