mirror of
https://github.com/brianlovin/security-checklist.git
synced 2026-03-11 08:55:31 +00:00
Simplify actions, add release drafter
This commit is contained in:
parent
7045bdccd2
commit
33960860fb
2 changed files with 23 additions and 29 deletions
4
.github/release-drafter.yml
vendored
Normal file
4
.github/release-drafter.yml
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
template: |
|
||||
## Changes since last release
|
||||
|
||||
$CHANGES
|
||||
48
.github/workflows/main.yml
vendored
48
.github/workflows/main.yml
vendored
|
|
@ -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
|
||||
Loading…
Reference in a new issue