Publish v17.13.1-dev.c839343a #3693
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: Lint and test | |
| on: | |
| push: | |
| branches-ignore: | |
| - "gh-pages" | |
| pull_request: | |
| types: [closed] | |
| branches: | |
| - main | |
| jobs: | |
| run-linters-and-tests: | |
| name: Run linters and tests | |
| runs-on: ubuntu-latest | |
| env: | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile --ignore-scripts && npx playwright install --with-deps | |
| - name: Security Audit | |
| run: pnpm audit --audit-level=critical | |
| - name: Lint | |
| uses: wearerequired/lint-action@v2 | |
| with: | |
| eslint: true | |
| eslint_dir: src | |
| eslint_extensions: js,ts,tsx | |
| eslint_auto_fix: false | |
| prettier: true | |
| prettier_extensions: js,ts,tsx | |
| prettier_auto_fix: false | |
| - name: Run Storybook test | |
| run: pnpm test:ci |