Merge pull request #123 from gravity-ui/release-please--branches--mai… #407
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| verify_files: | |
| name: Verify Files | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18 | |
| cache: 'npm' | |
| - name: Install Packages | |
| run: npm ci | |
| - name: Lint Files | |
| run: npm run lint | |
| - name: Typecheck | |
| run: npm run typecheck | |
| tests: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| container: | |
| image: mcr.microsoft.com/playwright:v1.52.0-jammy | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18 | |
| cache: 'npm' | |
| - name: Install Packages | |
| run: npm ci | |
| - name: Install Playwright Browsers | |
| run: npm run playwright:install | |
| - name: Unit Tests | |
| run: npm run test:unit | |
| - name: Integration Tests | |
| run: npm run playwright |