expose custom-view to service-info api #56
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: System tests and deploy | |
on: | |
push: | |
branches: | |
- staging | |
pull_request: | |
branches: | |
- staging | |
- main | |
paths-ignore: | |
- "docs/**" | |
- "README.md" | |
jobs: | |
system-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
# This would cause all other tests to be skipped | |
- name: Make sure we have no focused system-tests | |
run: | | |
test "$(grep -r 'test.only' ./system-tests/src/ | wc -l)" -eq 0 | |
- name: Setup system test environment | |
run: npm ci | |
working-directory: ./system-tests/ | |
- name: Install, test and build server | |
run: | | |
npm ci | |
npm test | |
npm run build | |
env PORT=3008 npm run start & | |
- name: Run system tests | |
run: npm run test | |
working-directory: ./system-tests/ | |
- uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: test-results | |
path: ./system-tests/test-results/ | |
if-no-files-found: ignore | |
- uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: playwright-html-report | |
path: ./system-tests/playwright-report/index.html | |
if-no-files-found: ignore | |
typecheck: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Run npm ci in repo root | |
run: npm ci | |
- name: Run npm ci system-tests | |
run: npm ci | |
working-directory: ./system-tests/ | |
- name: Run tsc | |
run: npx tsc --noEmit | |
working-directory: ./system-tests/ |