test: fix e2e + add ecosystem-ci test script (#311) #267
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: Build | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: pnpm | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm compile | |
- run: pnpm typecheck | |
- run: pnpm lint | |
- name: test | |
run: | | |
xvfb-run pnpm test | |
- name: test-e2e | |
run: | | |
pnpm -C samples/e2e i | |
npm -C samples/imba i | |
xvfb-run pnpm test-e2e --retry 2 | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
path: test-results |