react-native-vision-camera/.github/workflows/validate-js.yml
Marc Rousavy 6438b9a8bc
Bump CameraX versions to alpha2/alpha22 (#7)
* Bump CameraX versions to alpha2/alpha22
* Use `setDefaultResolution` to set format's photoSize
2021-02-26 17:34:28 +01:00

57 lines
1.2 KiB
YAML

name: Validate JS
on:
push:
branches:
- main
paths:
- '.github/workflows/validate-js.yml'
- 'src/**'
- '*.js'
- '*.json'
- 'package.json'
- 'tsconfig.json'
- '.prettierrc.js'
- '.eslintrc.js'
- 'babel.config.js'
pull_request:
paths:
- '.github/workflows/validate-js.yml'
- 'src/**'
- '*.js'
- '*.json'
- 'package.json'
- 'tsconfig.json'
- '.prettierrc.js'
- '.eslintrc.js'
- 'babel.config.js'
jobs:
vibe_check:
name: Validate JS (tsc, eslint, prettier)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install modules
run: yarn
- name: Install modules (example/)
run: yarn example
- name: Run TypeScript
run: yarn typescript
- name: Run ESLint
run: yarn lint-ci