-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 984 Bytes
/
mobile.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
name: lint mobile
# On pull request, make a deployment to Preview
# On merge into main, make a deployment to Develop
# On merge into prod, flag prod, make a deployment to Production
on:
push:
branches: [main, production]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
env:
working-directory: ./mobile
steps:
- uses: actions/checkout@v2
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Clear Yarn Cache
run: yarn cache clean
working-directory: ${{ env.working-directory }}
- name: Clear Cache
run: rm -rf /home/runner/.cache
working-directory: ${{ env.working-directory }}
- name: Install dependencies
run: yarn
working-directory: ${{ env.working-directory }}
- name: Lint files and run type-checks
run: yarn lint
working-directory: ${{ env.working-directory }}