forked from cloudfoundry/cloud_controller_ng
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
95 changed files
with
1,908 additions
and
1,079 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: "setup" | ||
description: "Configure Ubuntu to run Cloud_Controller_NG and its tests" | ||
|
||
inputs: | ||
BOSH_CLI_VERSION: | ||
description: "Bosh CLI Version" | ||
required: true | ||
default: 6.4.17 | ||
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 | ||
sudo wget -O /usr/local/bin/bosh https://s3.amazonaws.com/bosh-cli-artifacts/bosh-cli-${{ inputs.BOSH_CLI_VERSION }}-linux-amd64 && sudo chmod +x /usr/local/bin/bosh | ||
shell: bash | ||
working-directory: ${{ inputs.WORKING_DIRECTORY }} | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
working-directory: ${{ inputs.WORKING_DIRECTORY }} | ||
- name: Install Ruby dependencies | ||
run: bundle install | ||
shell: bash | ||
working-directory: ${{ inputs.WORKING_DIRECTORY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Docs Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- 'docs/**' | ||
- '.github/workflows/docs_test.yml' | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- 'docs/**' | ||
- '.github/workflows/docs_test.yml' | ||
|
||
jobs: | ||
Test-Docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Prepare setup | ||
run: cp -a .ruby-version docs/v3/.ruby-version | ||
- uses: ./.github/workflows/composite/setup | ||
with: | ||
WORKING_DIRECTORY: docs/v3 | ||
- name: Run docs tests | ||
run: | | ||
bundle install | ||
bundle exec rake check_doc_links | ||
- uses: ravsamhq/notify-slack-action@v1.1 | ||
if: github.event_name == 'push' | ||
with: | ||
status: ${{ job.status }} | ||
notify_when: 'failure' # default is 'success,failure,warnings' | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.