Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
asthamohta committed Feb 6, 2025
1 parent e244318 commit 0962f0e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
27 changes: 10 additions & 17 deletions .github/actions/setup-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.


# Action used to set up the environment. This assumes that we are using
# a Linux-based VM.
#
# General steps are:
# 1. Set up Java, which templates and tests are written in
# 2. Set up Go, which our CI/CD programs are written in
# 3. Build everything under cicd/cmd
# 4. Gets all the changed files

name: 'Setup Environment'
description: 'Sets up common environment for Dataflow Templates workflows'

Expand All @@ -36,16 +46,6 @@ inputs:
description: 'The version of Python to install'
required: false
default: '3.11'
node-version:
type: string
description: 'The version of Node.js to install'
required: false
default: '18'
angular-version:
type: string
description: 'The version of Angular CLI to install'
required: false
default: 'latest'

runs:
using: 'composite'
Expand Down Expand Up @@ -74,10 +74,3 @@ runs:
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
with:
python-version: ${{ inputs.python-version }}
- name: Setup Node.js and npm
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
- name: Install Angular CLI
shell: bash
run: npm install -g @angular/cli@${{ inputs.angular-version }}
6 changes: 6 additions & 0 deletions .github/workflows/spanner-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ jobs:
- name: Setup Environment
id: setup-env
uses: ./.github/actions/setup-env
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install Angular CLI
run: npm install -g @angular/cli
- name: Prepare Go Modules
working-directory: ${{ github.workspace }}/spanner-migration-tool
run: make build

0 comments on commit 0962f0e

Please sign in to comment.