Skip to content

Commit

Permalink
Add composite actions (#1256)
Browse files Browse the repository at this point in the history
Co-authored-by: taku333 <19281989thezuka@gmail.com>
  • Loading branch information
taku333 and taku333 authored Jan 18, 2023
1 parent cc77813 commit 675bf05
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 272 deletions.
42 changes: 42 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Copyright 2023-2023 DataStax Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Setup
description: Setup an actions environment.
runs:
using: "composite"
steps:
- name: Setup Maven Cache
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven3-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven3-
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'adopt' # See 'Supported distributions' for available options
java-version: '11'

- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '10.x'

- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
architecture: 'x64'
Loading

0 comments on commit 675bf05

Please sign in to comment.