From 8f6be44bf5a5a97aeaad325ece3438351868d496 Mon Sep 17 00:00:00 2001 From: Paul Merlin Date: Sat, 13 Jun 2020 13:14:52 +0200 Subject: [PATCH] Split dev/prod CI workflows --- .github/workflows/{ci.yml => dev.yml} | 12 +++--------- .github/workflows/prod.yml | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+), 9 deletions(-) rename .github/workflows/{ci.yml => dev.yml} (55%) create mode 100644 .github/workflows/prod.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/dev.yml similarity index 55% rename from .github/workflows/ci.yml rename to .github/workflows/dev.yml index 2213bf1..cc5cd73 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/dev.yml @@ -1,17 +1,11 @@ -name: ci +name: dev + on: pull_request: push: jobs: - build: # make sure build/ci work properly - 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 + check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml new file mode 100644 index 0000000..8cc1e45 --- /dev/null +++ b/.github/workflows/prod.yml @@ -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