Testar med env heller enn with #6
Workflow file for this run
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: config-cache | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- EY-4287_framleis-encryptionkey-kroell | |
permissions: | |
contents: write | |
id-token: write | |
jobs: | |
test-gradle-cache: | |
runs-on: ubuntu-latest-8-cores | |
timeout-minutes: 10 | |
permissions: | |
contents: write | |
id-token: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 21 | |
- name: Test printing your secret (Remove this step in production) | |
run: cat ${{ secrets.gradlekey }} | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
env: | |
cache-encryption-key: ${{ secrets.gradlekey }} | |
with: | |
# cache-encryption-key: ${{ secrets.gradlekey }} | |
dependency-graph: generate-and-submit | |
cache-read-only: false | |
- name: Gradle test and build | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: ./gradlew :apps:etterlatte-migrering:build |