mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-11-29 03:30:57 -05:00
Faster CI
This commit is contained in:
parent
466a737d16
commit
4f9b5202aa
2 changed files with 10 additions and 23 deletions
29
.github/workflows/dev.yml
vendored
29
.github/workflows/dev.yml
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
# make sure the build works and doesn't produce spurious changes
|
||||||
name: dev
|
name: dev
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
@ -6,10 +7,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
strategy:
|
runs-on: ubuntu-latest
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -17,19 +15,10 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
npm install
|
npm install
|
||||||
npm run all
|
npm run all
|
||||||
- name: Test wrapper
|
- name: Check for uncommitted changes
|
||||||
uses: ./
|
# Ensure no changes, but ignore node_modules dir since dev/fresh ci deps installed.
|
||||||
with:
|
run: |
|
||||||
wrapper-directory: __tests__/data/basic
|
git diff --exit-code --stat -- . ':!node_modules' \
|
||||||
build-root-directory: __tests__/data/basic
|
|| (echo "##[error] found changed files after build. please 'npm run all'" \
|
||||||
dependencies-cache-enabled: true
|
"and check in all changes" \
|
||||||
configuration-cache-enabled: true
|
&& exit 1)
|
||||||
arguments: test
|
|
||||||
- name: Test dist download
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
gradle-version: 6.6-milestone-1
|
|
||||||
build-root-directory: __tests__/data/basic
|
|
||||||
dependencies-cache-enabled: true
|
|
||||||
configuration-cache-enabled: true
|
|
||||||
arguments: test --configuration-cache
|
|
||||||
|
|
4
.github/workflows/prod.yml
vendored
4
.github/workflows/prod.yml
vendored
|
@ -2,10 +2,8 @@
|
||||||
name: prod
|
name: prod
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
- 'releases/*'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
|
|
Loading…
Reference in a new issue