[#228] Add TokenAuthenticator setup #762
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
name: Verify newproject script | |
on: | |
pull_request: | |
types: [ opened, reopened, synchronize ] | |
branches: [ develop ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
verify_newproject_script: | |
name: Verify newproject script | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- 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: Install Kscript | |
run: | | |
curl -s "https://get.sdkman.io" | bash | |
source "$HOME/.sdkman/bin/sdkman-init.sh" | |
source version.properties | |
sdk install kotlin $kotlinVersion | |
sdk install kscript $kscriptVersion | |
echo $PATH >> $GITHUB_PATH | |
- name: Verify generating new project from template-compose | |
working-directory: scripts | |
run: kscript new_project.kts package-name=co.mycomposeproject.example app-name="My Compose Project" template=compose | |