Simplify actions, add release drafter

This commit is contained in:
Brian Lovin 2019-12-26 23:06:38 -05:00
parent 7045bdccd2
commit 33960860fb
2 changed files with 23 additions and 29 deletions

4
.github/release-drafter.yml vendored Normal file
View file

@ -0,0 +1,4 @@
template: |
## Changes since last release
$CHANGES

View file

@ -1,32 +1,22 @@
name: E2E Tests
on: [push]
name: E2E on Chrome
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
cypress-run:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x]
# let's make sure our tests pass on Chrome browser
name: E2E on Chrome
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and start
run: |
npm install
npm run build --if-present
npm start &
- name: flow
run: |
npm run flow
- name: cypress
run: |
npm run cypress:run
env:
CI: true
- name: Checkout
uses: actions/checkout@v1
- name: Cypress run
uses: cypress-io/github-action@v1
with:
build: yarn run build
start: yarn run start
browser: chrome