Skip to content

Commit

Permalink
Testing github actions with gradle
Browse files Browse the repository at this point in the history
- Update github action to test integration with AWS
  • Loading branch information
lemm-leto committed Feb 5, 2024
1 parent cb6e108 commit 230c531
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,23 @@ on:
jobs:
build-gradle-project:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout project sources
uses: actions/checkout@v3
uses: actions/checkout@main
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Run build with Gradle Wrapper
run: ./gradlew checksum
- name: List files
run: ls -lrta
run: ls -lrta
- name: Configure AWS CLI
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::764439458017:role/github-actions
aws-region: eu-central-1
- name: Copy Files to S3
run: |
aws s3 sync checksum s3://tests-checksums
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
/target/
/.idea
build
.gradle
.gradle
checksum
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ tasks.register('checksum') {
task: 'Task 1',
testFiles: testFiles
]
new File(projectDir, "stage0-module2-task1.json").text = new JsonOutput().toJson(payload)
new File(projectDir, "checksum").mkdirs()
new File(projectDir, "checksum/stage0-module2-task1.json").text = new JsonOutput().toJson(payload)
}
}

0 comments on commit 230c531

Please sign in to comment.