From 4f9b5202aa2f06181f47c8cabda2f0bc3136f6cb Mon Sep 17 00:00:00 2001 From: Paul Merlin Date: Mon, 15 Jun 2020 20:03:30 +0200 Subject: [PATCH] Faster CI --- .github/workflows/dev.yml | 29 +++++++++-------------------- .github/workflows/prod.yml | 4 +--- 2 files changed, 10 insertions(+), 23 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 0ee668e..425e539 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -1,3 +1,4 @@ +# make sure the build works and doesn't produce spurious changes name: dev on: @@ -6,10 +7,7 @@ on: jobs: check: - strategy: - matrix: - os: [ubuntu-latest, macos-latest, windows-latest] - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest steps: - name: Checkout sources uses: actions/checkout@v2 @@ -17,19 +15,10 @@ jobs: run: | npm install npm run all - - name: Test wrapper - uses: ./ - with: - wrapper-directory: __tests__/data/basic - build-root-directory: __tests__/data/basic - dependencies-cache-enabled: true - configuration-cache-enabled: true - 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 + - name: Check for uncommitted changes + # Ensure no changes, but ignore node_modules dir since dev/fresh ci deps installed. + run: | + git diff --exit-code --stat -- . ':!node_modules' \ + || (echo "##[error] found changed files after build. please 'npm run all'" \ + "and check in all changes" \ + && exit 1) diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml index 2e44205..9976abb 100644 --- a/.github/workflows/prod.yml +++ b/.github/workflows/prod.yml @@ -2,10 +2,8 @@ name: prod on: + pull_request: push: - branches: - - master - - 'releases/*' jobs: check: