Merge branch 'release' #108
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
# Este workflow realiza el build de la aplicación y corre todos los tests. | |
name: Build y test | |
on: | |
push: | |
branches: [master, release] | |
pull_request: | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Get yarn cache | |
id: yarn-cache | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- uses: actions/cache@v1 | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Instalar dependencias | |
run: yarn install --frozen-lockfile | |
- name: Verificar formato | |
run: yarn run prettier -c . | |
- name: Build | |
run: yarn run build | |
- name: Test | |
run: yarn run test --watchAll=false |