Skip to content

github-action: bump ruby/setup-ruby from 1.156.0 to 1.213.0 #153

github-action: bump ruby/setup-ruby from 1.156.0 to 1.213.0

github-action: bump ruby/setup-ruby from 1.156.0 to 1.213.0 #153

Workflow file for this run

on: pull_request
env:
TF_VERSION: "1.5.2"
SHELLCHECK_VERSION: "0.7.1"
GO_VERSION: "1.20"
jobs:
tests:
runs-on: ubuntu-latest
steps:
## Setup
- name: Checkout repo
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
- 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 Go ${{env.GO_VERSION}}"
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: "${{env.GO_VERSION}}"
- name: "Install Pipecleaner"
run: |
go install github.com/alphagov/paas-cf/tools/pipecleaner@main
- name: Install Python packages
run: pip install --user yamllint
- name: Install Ruby
uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3
- name: Install bundle
run: |
gem install bundler
bundle install --jobs 4 --retry 3
## Tests
- name: "make test"
env:
TMPDIR: "${{runner.temp}}"
TF_IN_AUTOMATION: yes
GOPATH: "/home/runner/go"
GOBIN: "/home/runner/go/bin"
run: "make test"