my fork of the bluesky client
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: Install node
20 uses: actions/setup-node@v4
21 with:
22 node-version-file: .nvmrc
23 - name: Yarn install
24 uses: Wandalen/wretry.action@master
25 with:
26 command: yarn --frozen-lockfile
27 attempt_limit: 3
28 attempt_delay: 2000
29 - name: Lint check
30 run: yarn lint
31 - name: Prettier check
32 run: yarn prettier --check .
33 - name: Check & compile i18n
34 run: yarn intl:build
35 - name: Type check
36 run: yarn typecheck
37 testing:
38 name: Run tests
39 runs-on: ubuntu-latest
40 steps:
41 - name: Check out Git repository
42 uses: actions/checkout@v3
43 - name: Install node
44 uses: actions/setup-node@v4
45 with:
46 node-version-file: .nvmrc
47 - name: Yarn install
48 uses: Wandalen/wretry.action@master
49 with:
50 command: yarn --frozen-lockfile
51 attempt_limit: 3
52 attempt_delay: 2000
53 - name: Check & compile i18n
54 run: yarn intl:build
55 - name: Run tests
56 run: |
57 NODE_ENV=test EXPO_PUBLIC_ENV=test yarn test --forceExit