Skip to content

Commit

Permalink
test: github action test
Browse files Browse the repository at this point in the history
  • Loading branch information
hq001 committed Dec 19, 2020
1 parent f9a442c commit 4a59a12
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,47 @@ on:


jobs:
install:
name: Install dependencies and cache modeles
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.yarn
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
run: yarn install
- name: install lerna
run: yarn bootstrap
cypress-run:
name: Cypress run
runs-on: ubuntu-latest
needs: build
needs: install
steps:
- uses: actions/checkout@v2
- uses: cypress-io/github-action@v2
with:
config-file: cypress.json
start: yarn bootstrap, yarn dev, yarn test:run
start: yarn dev
wait-on: http://localhost:8080
wait-on-timeout: 60
build:
name: Yarn build
runs-on: ubuntu-latest
needs: install
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- name: install
run: yarn
- name: lint
run: yarn lint
- name: build
Expand Down

0 comments on commit 4a59a12

Please sign in to comment.