2023-01-19 19:28:52 +01:00
|
|
|
name: Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2023-03-27 17:19:26 +02:00
|
|
|
push:
|
2023-01-19 19:28:52 +01:00
|
|
|
branches:
|
|
|
|
- main
|
2023-03-27 17:19:26 +02:00
|
|
|
concurrency:
|
|
|
|
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
|
|
|
|
cancel-in-progress: true
|
2023-01-19 19:28:52 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
linting:
|
|
|
|
name: Run linters
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out Git repository
|
2023-02-22 21:23:57 +01:00
|
|
|
uses: actions/checkout@v3
|
2023-01-19 19:28:52 +01:00
|
|
|
- name: Yarn install
|
2023-12-06 03:18:28 +01:00
|
|
|
uses: Wandalen/wretry.action@master
|
|
|
|
with:
|
|
|
|
command: yarn --frozen-lockfile
|
|
|
|
attempt_limit: 3
|
|
|
|
attempt_delay: 2000
|
2023-06-02 22:01:04 +02:00
|
|
|
- name: Lint check
|
2023-01-19 19:28:52 +01:00
|
|
|
run: yarn lint
|
2024-04-02 07:58:31 +02:00
|
|
|
- name: Prettier check
|
|
|
|
run: yarn prettier --check .
|
2023-12-01 18:14:10 +01:00
|
|
|
- name: Check & compile i18n
|
|
|
|
run: yarn intl:build
|
2023-06-02 22:01:04 +02:00
|
|
|
- name: Type check
|
|
|
|
run: yarn typecheck
|
2023-01-19 19:28:52 +01:00
|
|
|
testing:
|
|
|
|
name: Run tests
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out Git repository
|
2023-02-22 21:23:57 +01:00
|
|
|
uses: actions/checkout@v3
|
2024-02-27 02:35:06 +01:00
|
|
|
- name: Install node
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version-file: .nvmrc
|
2023-01-19 19:28:52 +01:00
|
|
|
- name: Yarn install
|
2023-12-06 03:18:28 +01:00
|
|
|
uses: Wandalen/wretry.action@master
|
|
|
|
with:
|
|
|
|
command: yarn --frozen-lockfile
|
|
|
|
attempt_limit: 3
|
|
|
|
attempt_delay: 2000
|
2023-12-01 18:14:10 +01:00
|
|
|
- name: Check & compile i18n
|
|
|
|
run: yarn intl:build
|
2023-01-19 19:28:52 +01:00
|
|
|
- name: Run tests
|
2023-01-24 18:03:18 +01:00
|
|
|
run: |
|
2023-12-07 01:41:05 +01:00
|
|
|
NODE_ENV=test EXPO_PUBLIC_ENV=test yarn test --forceExit
|