-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #151 from nimblehq/chore/133-adding-test-step-for-…
…the-init-project-script [#133] Adding the test step for the newproject.sh test script
- Loading branch information
Showing
2 changed files
with
129 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Verify newproject script | ||
|
||
on: | ||
pull_request: | ||
types: [ opened, reopened, synchronize ] | ||
branches: [ develop ] | ||
|
||
jobs: | ||
verify_newproject_script: | ||
name: Verify newproject script | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
|
||
- name: Checkout source code | ||
uses: actions/[email protected] | ||
|
||
- name: Cache Gradle | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.gradle/caches/modules-* | ||
~/.gradle/caches/jars-* | ||
~/.gradle/caches/build-cache-* | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Verify generating new project from RxTemplate | ||
run: ./newproject.sh -t rx -p co.myproject.example -n "MyProjectExampleRx" | ||
|
||
- name: Verify generating new project from CoroutineTemplate | ||
run: ./newproject.sh -t crt -p co.myproject.example -n "MyProjectExampleCoroutine" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters