forked from
jollywhoppers.com/witchsky.app
Bluesky app fork with some witchin' additions 馃挮
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@v4
19 - name: Install node
20 uses: actions/setup-node@v6
21 with:
22 node-version-file: .nvmrc
23 cache: yarn
24 - name: Yarn install
25 uses: Wandalen/wretry.action@master
26 with:
27 command: yarn --frozen-lockfile
28 attempt_limit: 3
29 attempt_delay: 2000
30 - name: Lint check
31 run: yarn lint
32 - name: Lint lockfile
33 run: yarn lockfile-lint
34 - name: Prettier check
35 run: yarn prettier --check .
36 - name: Check & compile i18n
37 run: yarn intl:build
38 - name: Type check
39 run: yarn typecheck
40 testing:
41 name: Run tests
42 runs-on: ubuntu-latest
43 steps:
44 - name: Check out Git repository
45 uses: actions/checkout@v4
46 - name: Install node
47 uses: actions/setup-node@v6
48 with:
49 node-version-file: .nvmrc
50 cache: yarn
51 - name: Yarn install
52 uses: Wandalen/wretry.action@master
53 with:
54 command: yarn --frozen-lockfile
55 attempt_limit: 3
56 attempt_delay: 2000
57 - name: Check & compile i18n
58 run: yarn intl:build
59 - name: Run tests
60 run: |
61 NODE_ENV=test yarn test --forceExit