-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
27 additions
and
144 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -9,6 +9,31 @@ env: | |
RUN_REGION: us-central1 | ||
SERVICE_NAME: checkins-develop-native | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Node LTS | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
- name: Set up GraalVM 21 | ||
uses: graalvm/[email protected] | ||
with: | ||
distribution: 'graalvm' | ||
java-version: '21' | ||
- name: Cache Gradle packages | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: ${{ runner.os }}-gradle | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
- name: Run tests with Gradle | ||
run: ./gradlew nativeTest | ||
deploy: | ||
permissions: | ||
contents: 'read' | ||
|
@@ -20,7 +45,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
fetch-depth: 0 | ||
- name: Set up Node LTS | ||
uses: actions/setup-node@v4 | ||
with: | ||
|
@@ -38,18 +63,13 @@ jobs: | |
restore-keys: ${{ runner.os }}-gradle | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
# - name: Setup python | ||
# run: | | ||
# sudo apt-get install python2.7 | ||
# - name: Export gcloud related env variable | ||
# run: export CLOUDSDK_PYTHON="/usr/bin/python2" | ||
- id: 'auth' | ||
uses: 'google-github-actions/auth@v2' | ||
with: | ||
project_id: 'oci-intern-2019' | ||
workload_identity_provider: 'projects/832140020593/locations/global/workloadIdentityPools/github/providers/my-repo' | ||
- name: 'Set up Cloud SDK' | ||
uses: 'google-github-actions/setup-gcloud@v2' | ||
uses: google-github-actions/setup-gcloud@v2 | ||
with: | ||
version: '>= 363.0.0' | ||
- name: 'Auth Configure Docker' | ||
|
@@ -92,28 +112,3 @@ jobs: | |
--platform "managed" \ | ||
--max-instances 2 \ | ||
--allow-unauthenticated | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
- name: Set up Node LTS | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
- name: Set up GraalVM 21 | ||
uses: graalvm/[email protected] | ||
with: | ||
distribution: 'graalvm' | ||
java-version: '21' | ||
- name: Cache Gradle packages | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: ${{ runner.os }}-gradle | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
- name: Run tests with Gradle | ||
run: ./gradlew nativeTest |