Switch all iModels API calls to v2 (#153) #376
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
# This workflow will perform static code checking and run all tests | |
name: Continuous Integration | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
node-version: [16] | |
name: Build and run tests | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2.0.1 | |
with: | |
version: 8.0.0 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install | |
- name: Install playwright browsers | |
run: npx playwright install | |
working-directory: ./app/e2e-tests | |
- name: ESLint | |
run: npm run lint | |
- name: Typecheck | |
run: npm run typecheck | |
- name: Build presentation-rules-editor-react package | |
run: npm run build --prefix ./presentation-rules-editor-react | |
- name: Check unit test coverage | |
run: npm run test:cover --prefix ./presentation-rules-editor-react | |
- name: Run end-to-end tests | |
run: npm test --prefix ./app/e2e-tests | |
timeout-minutes: 5 |