mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
1name: Lint
2
3on:
4 pull_request:
5 push:
6 branches:
7 - main
8concurrency:
9 group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
10 cancel-in-progress: true
11
12jobs:
13 linting:
14 name: Run linters
15 runs-on: ubuntu-latest
16 steps:
17 - name: Check out Git repository
18 uses: actions/checkout@v3
19 - name: Yarn install
20 uses: Wandalen/wretry.action@master
21 with:
22 command: yarn --frozen-lockfile
23 attempt_limit: 3
24 attempt_delay: 2000
25 - name: Lint check
26 run: yarn lint
27 - name: Prettier check
28 run: yarn prettier --check .
29 - name: Check & compile i18n
30 run: yarn intl:build
31 - name: Type check
32 run: yarn typecheck
33 testing:
34 name: Run tests
35 runs-on: ubuntu-latest
36 steps:
37 - name: Check out Git repository
38 uses: actions/checkout@v3
39 - name: Install node
40 uses: actions/setup-node@v4
41 with:
42 node-version-file: .nvmrc
43 - name: Yarn install
44 uses: Wandalen/wretry.action@master
45 with:
46 command: yarn --frozen-lockfile
47 attempt_limit: 3
48 attempt_delay: 2000
49 - name: Check & compile i18n
50 run: yarn intl:build
51 - name: Run tests
52 run: |
53 NODE_ENV=test EXPO_PUBLIC_ENV=test yarn test --forceExit