.github/workflows/composite/setup/action.yml
name: "setup"
description: "Configure Ubuntu to run Cloud_Controller_NG and its tests"
inputs:
WORKING_DIRECTORY:
description: "The Current Work Directory from which installs specifically bundle installs should take place"
required: true
default: "."
runs:
using: "composite"
steps:
- name: Install OS dependencies
run: |
sudo apt-get update && \
sudo apt-get -y install \
build-essential \
curl \
debconf-utils \
git \
libcurl4-openssl-dev \
libpq-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
libxslt-dev \
libyaml-dev \
libv8-dev \
software-properties-common \
unzip \
wget \
zip \
zlib1g-dev
shell: bash
working-directory: ${{ inputs.WORKING_DIRECTORY }}
- name: Setup Bundler
run: |
mkdir .bundle
echo -e 'BUNDLE_WITHOUT: "development"' > .bundle/config
shell: bash
working-directory: ${{ inputs.WORKING_DIRECTORY }}
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
working-directory: ${{ inputs.WORKING_DIRECTORY }}