mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
37 lines
919 B
YAML
37 lines
919 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
env:
|
|
VITE_APPWRITE_ENDPOINT: http://appwrite.test/v1
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 16
|
|
- name: Audit dependencies
|
|
run: npm audit --audit-level high
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
- name: Build Console
|
|
run: npm run build
|
|
- name: Svelte Diagnostics
|
|
run: npm run check
|
|
- name: Linter
|
|
run: npm run lint
|
|
- name: Unit Tests
|
|
run: npm test
|
|
- name: E2E Tests
|
|
run: |
|
|
npx playwright install
|
|
npm run e2e
|