4.17.0 (#148) #436
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: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Prettier Check | |
shell: bash | |
run: yarn && yarn prettier:check | |
- name: Lint Check | |
shell: bash | |
run: yarn && yarn lint | |
- name: Unit test | |
shell: bash | |
run: yarn && yarn test:ci | |
- name: Build | |
shell: bash | |
run: yarn && yarn build | |
# Install NPM dependencies, cache them correctly | |
# and run all Cypress tests | |
- name: Cypress run | |
if: github.event.pull_request.base.ref == 'master' | |
uses: cypress-io/github-action@v5 | |
with: | |
start: yarn start | |
# quote the url to be safe against YML parsing surprises | |
wait-on: 'http://localhost:4200' |