Update dependency eslint-plugin-prettier to v3.4.1 #1025
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: CI | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '10' | |
- name: Get yarn cache directory path | |
id: yarn-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- name: Cache yarn modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache | |
with: | |
path: ${{ steps.yarn-path.outputs.dir }} | |
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: Lint, test and build | |
run: | | |
yarn lint | |
yarn test:coverage | |
yarn build | |
- name: Send test code coverage | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.codecov_token }} | |
file: ./coverage/lcov.info | |