Skip to content

Commit

Permalink
playground precommit move to selfhosted and update (#32987)
Browse files Browse the repository at this point in the history
* playground precommit move to selfhosted and update

* playground precommit move to selfhosted and update
  • Loading branch information
volatilemolotov authored Oct 31, 2024
1 parent 8c23504 commit d3a841c
Showing 1 changed file with 23 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,43 @@ name: Playground PreCommit

on:
workflow_dispatch:
pull_request:
pull_request_target:
paths:
- .github/workflows/playground_backend_precommit.yml
- playground/backend/**
issue_comment:
types: [created]

env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GE_CACHE_USERNAME }}
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GE_CACHE_PASSWORD }}

jobs:
precommit_check:
name: precommit-check
runs-on: ubuntu-latest
beam_Playground_PreCommit:
if: |
github.event_name == 'workflow_dispatch' ||
github.event_name == 'pull_request_target' ||
github.event.comment.body == 'Run Playground PreCommit'
name: ${{ matrix.job_name }} (${{ matrix.job_phrase }})
runs-on: [self-hosted, ubuntu-20.04, main]
strategy:
fail-fast: false
matrix:
job_name: [beam_Playground_PreCommit]
job_phrase: [Run Playground PreCommit]
env:
DATASTORE_EMULATOR_VERSION: '423.0.0'
PYTHON_VERSION: '3.9'
JAVA_VERSION: '11'
steps:
- name: Check out the repo
uses: actions/checkout@v4

- uses: actions/checkout@v4
- name: Setup repository
uses: ./.github/actions/setup-action
with:
comment_phrase: ${{ matrix.job_phrase }}
github_token: ${{ secrets.GITHUB_TOKEN }}
github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }})
- name: Setup environment
uses: ./.github/actions/setup-environment-action
with:
Expand All @@ -58,7 +73,7 @@ jobs:
sudo chmod 644 /etc/apt/trusted.gpg.d/scalasbt-release.gpg
sudo apt-get update --yes
sudo apt-get install sbt --yes
sudo wget https://codeload.github.com/spotify/scio.g8/zip/7c1ba7c1651dfd70976028842e721da4107c0d6d -O scio.g8.zip && unzip scio.g8.zip && mv scio.g8-7c1ba7c1651dfd70976028842e721da4107c0d6d /opt/scio.g8
sudo wget https://codeload.github.com/spotify/scio.g8/zip/7c1ba7c1651dfd70976028842e721da4107c0d6d -O scio.g8.zip && unzip scio.g8.zip && sudo mv scio.g8-7c1ba7c1651dfd70976028842e721da4107c0d6d /opt/scio.g8
- name: Set up Cloud SDK and its components
uses: google-github-actions/setup-gcloud@v2
with:
Expand Down

0 comments on commit d3a841c

Please sign in to comment.