mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-25 14:16:18 +08:00
Split dev/prod CI workflows
This commit is contained in:
parent
469bf6123e
commit
8f6be44bf5
@ -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
19
.github/workflows/prod.yml
vendored
Normal 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
|
Loading…
x
Reference in New Issue
Block a user