cf-deployment: 30.5.0 -> 32.1.0 #2341
Workflow file for this run
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
on: pull_request | |
env: | |
TF_VERSION: "1.5.2" | |
BOSH_CLI_VERSION: "2.0.48" | |
PROMETHEUS_VERSION: "2.42.0" | |
DEPLOY_ENV: "github" | |
SHELLCHECK_VERSION: "0.7.1" | |
GO_VERSION: "1.20" | |
RUBY_VERSION: "3.1.0" | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
make_task: | |
- "lint" | |
- "config_spec" | |
- "tools_spec" | |
- "concourse_spec" | |
- "manifests_spec" | |
- "terraform_spec" | |
- "platform_tests_spec" | |
- "compile_platform_tests" | |
steps: | |
## Setup | |
- name: Checkout repo | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 | |
with: | |
submodules: true | |
- name: Install Shellcheck | |
run: | | |
wget -qO- "https://github.com/koalaman/shellcheck/releases/download/v${SHELLCHECK_VERSION}/shellcheck-v${SHELLCHECK_VERSION}.linux.x86_64.tar.xz" | tar -xJv | |
sudo cp "shellcheck-v${SHELLCHECK_VERSION}/shellcheck" /usr/local/bin | |
- name: "Install Terraform ${{env.TF_VERSION}}" | |
run: | | |
cd "${{runner.temp}}" | |
wget -q -O terraform.zip "https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_linux_amd64.zip" | |
unzip terraform.zip | |
chmod +x ./terraform | |
sudo mv -f ./terraform /usr/local/bin | |
- name: Install Bosh CLI v2 | |
run: | | |
set -e | |
wget -q "https://s3.amazonaws.com/bosh-cli-artifacts/bosh-cli-${BOSH_CLI_VERSION}-linux-amd64" | |
sudo mv "bosh-cli-${BOSH_CLI_VERSION}-linux-amd64" /usr/local/bin/bosh && sudo chmod +x /usr/local/bin/bosh | |
set +e | |
- name: "Install Promtool ${{env.PROMETHEUS_VERSION}}" | |
run: | | |
wget -q -O prometheus.tgz "https://github.com/prometheus/prometheus/releases/download/v${PROMETHEUS_VERSION}/prometheus-${PROMETHEUS_VERSION}.linux-amd64.tar.gz" | |
sudo tar xzf "prometheus.tgz" -C /usr/local/bin --wildcards --wildcards-match-slash --strip-components=1 '*promtool' | |
promtool --version | |
- name: "Install Go ${{env.GO_VERSION}}" | |
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe | |
with: | |
go-version: "${{env.GO_VERSION}}" | |
- name: Install pipecleaner | |
run: (cd tools/pipecleaner && go install -mod=vendor) | |
- name: Install Python packages | |
run: pip install --user yamllint | |
- name: Install Ruby | |
uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 | |
with: | |
ruby-version: "${{env.RUBY_VERSION}}" | |
- name: Install bundle | |
run: | | |
gem install bundler | |
bundle install --jobs 4 --retry 3 | |
## Tests | |
- name: "make ${{ matrix.make_task }}" | |
env: | |
TMPDIR: "${{runner.temp}}" | |
TF_IN_AUTOMATION: yes | |
GOPATH: "/home/runner/go" | |
GOBIN: "/home/runner/go/bin" | |
run: "make ${{ matrix.make_task }}" |