Skip to content

Commit

Permalink
Update GitHub Actions to Node 20 version (SatcherInstitute#2882)
Browse files Browse the repository at this point in the history
# Description and Motivation

This PR updates the following actions to the latest major version:

- actions/checkout (v3 -> v4)
- google-github-actions/auth (v1 -> v2)
- google-github-actions/setup-gcloud (v1 -> v2)
- hashicorp/setup-terraform (v2 -> v3)
- actions/setup-python (v4 -> v5)
- actions/upload-artifact (v3 -> v4)
- super-linter/super-linter (v5 -> v6)

Closes
SatcherInstitute#2877.

## Has this been tested? How?

CI runs in my fork.

## Screenshots (if appropriate)

## Types of changes

- Refactor / chore

## New frontend preview link is below in the Netlify comment 😎

---------

Signed-off-by: Eng Zer Jun <[email protected]>
  • Loading branch information
Juneezee authored and kccrtv committed Feb 14, 2024
1 parent 7b3fc12 commit fd02d82
Show file tree
Hide file tree
Showing 10 changed files with 84 additions and 85 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/deployBackendToInfraTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:
image-digest: ${{ steps.ingestion.outputs.image-digest }}
steps:
- name: Check Out Code from infra-test
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: infra-test
- id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.TEST_DEPLOYER_SA_KEY }}
- name: Set Up gcloud
uses: google-github-actions/setup-gcloud@v1
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.TEST_PROJECT_ID }}
- id: ingestion
Expand All @@ -43,15 +43,15 @@ jobs:
image-digest: ${{ steps.gcstobq.outputs.image-digest }}
steps:
- name: Check Out Code from infra-test
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: infra-test
- id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.TEST_DEPLOYER_SA_KEY }}
- name: Set Up gcloud
uses: google-github-actions/setup-gcloud@v1
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.TEST_PROJECT_ID }}
- id: gcstobq
Expand All @@ -68,15 +68,15 @@ jobs:
image-digest: ${{ steps.exporter.outputs.image-digest }}
steps:
- name: Check Out Code from infra-test
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: infra-test
- id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.TEST_DEPLOYER_SA_KEY }}
- name: Set Up gcloud
uses: google-github-actions/setup-gcloud@v1
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.TEST_PROJECT_ID }}
- id: exporter
Expand All @@ -93,15 +93,15 @@ jobs:
image-digest: ${{ steps.serving.outputs.image-digest }}
steps:
- name: Check Out Code from infra-test
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: infra-test
- id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.TEST_DEPLOYER_SA_KEY }}
- name: Set Up gcloud
uses: google-github-actions/setup-gcloud@v1
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.TEST_PROJECT_ID }}
- id: serving
Expand All @@ -118,16 +118,16 @@ jobs:
image-digest: ${{ steps.frontend.outputs.image-digest }}
steps:
- name: Check Out Code from main
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# don't update dev.healthequitytracker.org frontend with push to infra-test branch
ref: main
- id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.TEST_DEPLOYER_SA_KEY }}
- name: Set Up gcloud
uses: google-github-actions/setup-gcloud@v1
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.TEST_PROJECT_ID }}
- id: frontend
Expand All @@ -147,19 +147,19 @@ jobs:

steps:
- name: Check Out Code from infra-test
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: infra-test
- id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.TEST_DEPLOYER_SA_KEY }}
- name: Set Up gcloud
uses: google-github-actions/setup-gcloud@v1
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.TEST_PROJECT_ID }}
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
uses: hashicorp/setup-terraform@v3
# Disable wrapper to enable access to terraform output.
with:
terraform_wrapper: false
Expand Down Expand Up @@ -188,15 +188,15 @@ jobs:
-var 'exporter_image_digest=${{ needs.build-exporter.outputs.image-digest }}' \
-var 'frontend_image_digest=${{ needs.build-frontend.outputs.image-digest }}'
data_server_url=$(terraform output data_server_url)
echo "data_server_url=$data_server_url" >> $GITHUB_OUTPUT
echo "data_server_url=$data_server_url" >> "$GITHUB_OUTPUT"
ingestion_url=$(terraform output ingestion_url)
echo "ingestion_url=$ingestion_url" >> $GITHUB_OUTPUT
echo "ingestion_url=$ingestion_url" >> "$GITHUB_OUTPUT"
gcs_to_bq_url=$(terraform output gcs_to_bq_url)
echo "gcs_to_bq_url=$gcs_to_bq_url" >> $GITHUB_OUTPUT
echo "gcs_to_bq_url=$gcs_to_bq_url" >> "$GITHUB_OUTPUT"
exporter_url=$(terraform output exporter_url)
echo "exporter_url=$exporter_url" >> $GITHUB_OUTPUT
echo "exporter_url=$exporter_url" >> "$GITHUB_OUTPUT"
frontend_url=$(terraform output frontend_url)
echo "frontend_url=$frontend_url" >> $GITHUB_OUTPUT
echo "frontend_url=$frontend_url" >> "$GITHUB_OUTPUT"
- name: Airflow Environment Variables
id: airflow-environment-variables
continue-on-error: true
Expand All @@ -213,6 +213,6 @@ jobs:
run: |
./upload-dags.sh
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.8
50 changes: 25 additions & 25 deletions .github/workflows/deployToTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
image-digest: ${{ steps.ingestion.outputs.image-digest }}
steps:
- name: Check Out Code
uses: actions/checkout@v3
uses: actions/checkout@v4
- id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.TEST_DEPLOYER_SA_KEY }}
- name: Set Up gcloud
uses: google-github-actions/setup-gcloud@v1
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.TEST_PROJECT_ID }}
- id: ingestion
Expand All @@ -37,13 +37,13 @@ jobs:
image-digest: ${{ steps.gcstobq.outputs.image-digest }}
steps:
- name: Check Out Code
uses: actions/checkout@v3
uses: actions/checkout@v4
- id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.TEST_DEPLOYER_SA_KEY }}
- name: Set Up gcloud
uses: google-github-actions/setup-gcloud@v1
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.TEST_PROJECT_ID }}
- id: gcstobq
Expand All @@ -60,13 +60,13 @@ jobs:
image-digest: ${{ steps.exporter.outputs.image-digest }}
steps:
- name: Check Out Code
uses: actions/checkout@v3
uses: actions/checkout@v4
- id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.TEST_DEPLOYER_SA_KEY }}
- name: Set Up gcloud
uses: google-github-actions/setup-gcloud@v1
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.TEST_PROJECT_ID }}
- id: exporter
Expand All @@ -83,13 +83,13 @@ jobs:
image-digest: ${{ steps.serving.outputs.image-digest }}
steps:
- name: Check Out Code
uses: actions/checkout@v3
uses: actions/checkout@v4
- id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.TEST_DEPLOYER_SA_KEY }}
- name: Set Up gcloud
uses: google-github-actions/setup-gcloud@v1
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.TEST_PROJECT_ID }}
- id: serving
Expand All @@ -106,13 +106,13 @@ jobs:
image-digest: ${{ steps.frontend.outputs.image-digest }}
steps:
- name: Check Out Code
uses: actions/checkout@v3
uses: actions/checkout@v4
- id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.TEST_DEPLOYER_SA_KEY }}
- name: Set Up gcloud
uses: google-github-actions/setup-gcloud@v1
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.TEST_PROJECT_ID }}
- id: frontend
Expand All @@ -132,17 +132,17 @@ jobs:

steps:
- name: Check Out Code
uses: actions/checkout@v3
uses: actions/checkout@v4
- id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.TEST_DEPLOYER_SA_KEY }}
- name: Set Up gcloud
uses: google-github-actions/setup-gcloud@v1
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.TEST_PROJECT_ID }}
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
uses: hashicorp/setup-terraform@v3
# Disable wrapper to enable access to terraform output.
with:
terraform_wrapper: false
Expand Down Expand Up @@ -172,15 +172,15 @@ jobs:
-var 'exporter_image_digest=${{ needs.build-exporter.outputs.image-digest }}' \
-var 'frontend_image_digest=${{ needs.build-frontend.outputs.image-digest }}'
data_server_url=$(terraform output data_server_url)
echo "data_server_url=$data_server_url" >> $GITHUB_OUTPUT
echo "data_server_url=$data_server_url" >> "$GITHUB_OUTPUT"
ingestion_url=$(terraform output ingestion_url)
echo "ingestion_url=$ingestion_url" >> $GITHUB_OUTPUT
echo "ingestion_url=$ingestion_url" >> "$GITHUB_OUTPUT"
gcs_to_bq_url=$(terraform output gcs_to_bq_url)
echo "gcs_to_bq_url=$gcs_to_bq_url" >> $GITHUB_OUTPUT
echo "gcs_to_bq_url=$gcs_to_bq_url" >> "$GITHUB_OUTPUT"
exporter_url=$(terraform output exporter_url)
echo "exporter_url=$exporter_url" >> $GITHUB_OUTPUT
echo "exporter_url=$exporter_url" >> "$GITHUB_OUTPUT"
frontend_url=$(terraform output frontend_url)
echo "frontend_url=$frontend_url" >> $GITHUB_OUTPUT
echo "frontend_url=$frontend_url" >> "$GITHUB_OUTPUT"
- name: Airflow Environment Variables
id: airflow-environment-variables
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
Expand All @@ -199,7 +199,7 @@ jobs:
run: |
./upload-dags.sh
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Run Python E2E Tests
Expand Down
39 changes: 19 additions & 20 deletions .github/workflows/destroyTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
image-digest: ${{ steps.ingestion.outputs.image-digest }}
steps:
- name: Check Out Code
uses: actions/checkout@v3
uses: actions/checkout@v4
- id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.TEST_DEPLOYER_SA_KEY }}
- name: Set Up gcloud
uses: google-github-actions/setup-gcloud@v1
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.TEST_PROJECT_ID }}
- id: ingestion
Expand All @@ -35,13 +35,13 @@ jobs:
image-digest: ${{ steps.gcstobq.outputs.image-digest }}
steps:
- name: Check Out Code
uses: actions/checkout@v3
uses: actions/checkout@v4
- id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.TEST_DEPLOYER_SA_KEY }}
- name: Set Up gcloud
uses: google-github-actions/setup-gcloud@v1
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.TEST_PROJECT_ID }}
- id: gcstobq
Expand All @@ -58,13 +58,13 @@ jobs:
image-digest: ${{ steps.exporter.outputs.image-digest }}
steps:
- name: Check Out Code
uses: actions/checkout@v3
uses: actions/checkout@v4
- id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.TEST_DEPLOYER_SA_KEY }}
- name: Set Up gcloud
uses: google-github-actions/setup-gcloud@v1
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.TEST_PROJECT_ID }}
- id: exporter
Expand All @@ -81,13 +81,13 @@ jobs:
image-digest: ${{ steps.serving.outputs.image-digest }}
steps:
- name: Check Out Code
uses: actions/checkout@v3
uses: actions/checkout@v4
- id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.TEST_DEPLOYER_SA_KEY }}
- name: Set Up gcloud
uses: google-github-actions/setup-gcloud@v1
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.TEST_PROJECT_ID }}
- id: serving
Expand All @@ -104,13 +104,13 @@ jobs:
image-digest: ${{ steps.frontend.outputs.image-digest }}
steps:
- name: Check Out Code
uses: actions/checkout@v3
uses: actions/checkout@v4
- id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.TEST_DEPLOYER_SA_KEY }}
- name: Set Up gcloud
uses: google-github-actions/setup-gcloud@v1
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.TEST_PROJECT_ID }}
- id: frontend
Expand All @@ -130,17 +130,17 @@ jobs:

steps:
- name: Check Out Code
uses: actions/checkout@v3
uses: actions/checkout@v4
- id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.TEST_DEPLOYER_SA_KEY }}
- name: Set Up gcloud
uses: google-github-actions/setup-gcloud@v1
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.TEST_PROJECT_ID }}
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
uses: hashicorp/setup-terraform@v3
# Disable wrapper to enable access to terraform output.
with:
terraform_wrapper: false
Expand Down Expand Up @@ -168,4 +168,3 @@ jobs:
-var 'data_server_image_digest=${{ needs.build-data-server.outputs.image-digest }}' \
-var 'exporter_image_digest=${{ needs.build-exporter.outputs.image-digest }}' \
-var 'frontend_image_digest=${{ needs.build-frontend.outputs.image-digest }}'
Loading

0 comments on commit fd02d82

Please sign in to comment.