Skip to content

Commit

Permalink
Merge pull request #31 from bcgov/chore/project-lifecycle-badge
Browse files Browse the repository at this point in the history
chore: add badge
  • Loading branch information
matthieu-foucault committed Nov 24, 2021
2 parents b7cafee + 474300b commit 582ea33
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,27 @@ executors:
jobs:
tools:
machine:
image: ubuntu-1604:201903-01
image: ubuntu-2004:202111-01
working_directory: ~/cas-shelf
steps:
- checkout:
path: ~/cas-shelf
- restore_cache:
name: Restore asdf Tools Cache
keys:
- tool-versions-{{ checksum ".tool-versions" }}-v2
- tool-versions-{{ checksum ".tool-versions" }}-v3
- run:
name: Install tools via asdf
command: |
[[ -d ~/.asdf ]] || git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.8.0
pushd ~/.asdf && git checkout v0.8.0 && popd
[[ -d ~/.asdf ]] || git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.8.1
pushd ~/.asdf && git checkout v0.8.1 && popd
echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.bashrc
echo -e '\nexport BASH_ENV="~/.asdf/asdf.sh"' >> ~/.bashrc
source ~/.bashrc
make install_asdf_tools
- save_cache:
name: Save asdf Tools Cache
key: tool-versions-{{ checksum ".tool-versions" }}-v2
key: tool-versions-{{ checksum ".tool-versions" }}-v3
paths:
- ~/.asdf
- persist_to_workspace:
Expand All @@ -49,7 +49,7 @@ jobs:

unit:
machine:
image: ubuntu-1604:201903-01
image: ubuntu-2004:202111-01
working_directory: ~/cas-shelf
steps:
- attach_workspace:
Expand Down
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform 0.12.23
terraform 0.12.31
golang 1.14
nodejs 12.16.1
yarn 1.22.0
yarn 1.22.17
python 3.7.0
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Terraform Enterprise API scripts located in folder `tfe-scripts` helps create a new workspace with the initial configuration, folder `bcgov`
and user-defined configure variables, folder `variables`.

## Status

![Lifecycle:Stable](https://img.shields.io/badge/Lifecycle-Stable-97ca00)

## Steps

### Install Tools
Expand Down
3 changes: 3 additions & 0 deletions tests/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module cas_shelf_test_module

go 1.14
5 changes: 5 additions & 0 deletions tests/setup/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
terraform {
required_version = ">= 0.12"
required_providers {
google = {
version = "= 3.65.0"
}
}
}

provider "google" {
Expand Down
5 changes: 5 additions & 0 deletions tests/terratest/scripts/gcp-create-bucket/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
terraform {
required_version = ">= 0.12"
required_providers {
google = {
version = "= 3.65.0"
}
}
}

provider "google" {
Expand Down
5 changes: 5 additions & 0 deletions tests/terratest/scripts/gcp-upload-file/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
terraform {
required_version = ">= 0.12"
required_providers {
google = {
version = "= 3.65.0"
}
}
}

provider "google" {
Expand Down

0 comments on commit 582ea33

Please sign in to comment.