-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (37 loc) · 945 Bytes
/
push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: yarn && npx playwright install --with-deps
- 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_dir: src
prettier_extensions: js,ts,tsx
prettier_auto_fix: false
- name: Run Storybook test-runner
run: yarn test