Reduced max file size warn and added a size cap to upload #157
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push | |
on: | |
push: | |
jobs: | |
lint-test: | |
if: "!contains(github.event.head_commit.message, '[skip:ci]')" | |
name: Run linters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v2 | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Install dependencies | |
run: yarn | |
- name: Build | |
run: yarn build | |
- name: Typescript compile | |
run: yarn tsc | |
- name: Run linters | |
uses: wearerequired/lint-action@v1 | |
with: | |
github_token: ${{ secrets.github_token }} | |
# Eslint | |
eslint: true | |
eslint_dir: src/ | |
eslint_extensions: js,jsx,ts,tsx | |
# Prettier | |
prettier: true | |
prettier_dir: src/ | |
- name: Test | |
run: yarn test:ci | |
- uses: codecov/codecov-action@v1 |