Split dev/prod CI workflows

This commit is contained in:
Paul Merlin 2020-06-13 13:14:52 +02:00
parent 469bf6123e
commit 8f6be44bf5
2 changed files with 22 additions and 9 deletions

View file

@ -1,17 +1,11 @@
name: ci name: dev
on: on:
pull_request: pull_request:
push: push:
jobs: jobs:
build: # make sure build/ci work properly check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
npm install
npm run all
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

19
.github/workflows/prod.yml vendored Normal file
View file

@ -0,0 +1,19 @@
# make sure the action works on a clean machine without building
name: prod
on:
push:
branches:
- master
- 'releases/*'
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./
with:
wrapper-directory: __tests__/data/basic
build-root-directory: __tests__/data/basic
arguments: help