Skip to content

Commit

Permalink
Align action scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
timyates committed Sep 18, 2024
1 parent 469c0be commit 0f92217
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 144 deletions.
112 changes: 0 additions & 112 deletions .github/workflows/gradle-build-develop.yml

This file was deleted.

59 changes: 27 additions & 32 deletions .github/workflows/gradle-deploy-native-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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:
Expand All @@ -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'
Expand Down Expand Up @@ -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

0 comments on commit 0f92217

Please sign in to comment.