Skip to content

Commit

Permalink
fix: lack of versions
Browse files Browse the repository at this point in the history
  • Loading branch information
valter-silva-au committed Mar 2, 2024
1 parent 218315c commit d61932a
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 14 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ name: Test
on:
push:
branches:
- feature/*
- bugfix/*
- hotfix/*
- develop
- main
schedule:
- cron: '0 0 * * *'

jobs:
habits:
Expand Down Expand Up @@ -46,8 +44,8 @@ jobs:
- name: Cobra Install
run: make go/install cobra/install

- name: Cobra version
run: make cobra/version
# - name: Cobra version
# run: make cobra/version # TODO
go:
runs-on: [ubuntu-latest]
steps:
Expand Down Expand Up @@ -113,7 +111,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Prettier Install
- name: Setup NPM Global
run: make npm/install-global npm/update-path

- name: Install Prettier
run: make prettier/install

- name: Prettier version
Expand Down
2 changes: 1 addition & 1 deletion lib/make/aws/cli.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ aws/cli/autocomplete:

.PHONY: aws/cli/install/sso-creds-helper
aws/cli/install/sso-creds-helper:
@source /usr/local/share/nvm/nvm.sh && npm install -g aws-sso-creds-helper
npm install -g aws-sso-creds-helper

.PHONY: aws/cli/version
## Display AWS CLI version
Expand Down
5 changes: 5 additions & 0 deletions lib/make/nodejs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ nodejs/install/v20:
.PHONY: nodejs/install
## Install NodeJS
nodejs/install: nodejs/install/v18

.PHONY: nodejs/version
## Show NodeJS version
nodejs/version:
@node --version
18 changes: 14 additions & 4 deletions lib/make/npm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@ npm/install:
@sudo apt-get update
@sudo apt-get install --yes npm

.PHONY: npm/aws-sso-creds-helper/install
## Install NPM package sso-creds (DevContainer)
npm/aws-sso-creds-helper/install:
@source /usr/local/share/nvm/nvm.sh && npm install -g aws-sso-creds-helper
.PHONY: npm/version
## Show NPM version
npm/version:
@npm --version

.PHONY: npm/install-global
npm/install-global:
mkdir -p ~/.npm-global
npm config set prefix '~/.npm-global'

.PHONY: npm/update-path
npm/update-path:
echo 'export PATH=~/.npm-global/bin:$$PATH' >> ~/.bashrc
source ~/.bashrc
3 changes: 2 additions & 1 deletion lib/make/nuke.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.PHONY: nuke/install
nuke/install: is/env/set/AWS_NUKE_VERSION
nuke/install:
$(call assert-set,AWS_NUKE_VERSION)
wget https://github.com/rebuy-de/aws-nuke/releases/download/$(AWS_NUKE_VERSION)/aws-nuke-$(AWS_NUKE_VERSION)-linux-amd64.tar.gz
tar -xzf aws-nuke-$(AWS_NUKE_VERSION)-linux-amd64.tar.gz
sudo mv aws-nuke-$(AWS_NUKE_VERSION)-linux-amd64 /usr/local/bin/aws-nuke
Expand Down
2 changes: 1 addition & 1 deletion lib/make/prettier.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.PHONY: prettier/install
prettier/install:
@source /usr/local/share/nvm/nvm.sh && npm install -g prettier
npm install -g prettier
4 changes: 4 additions & 0 deletions lib/make/ubuntu.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ ubuntu/install: ansible/playbooks/ubuntu/install
.PHONY: ubuntu/update
## Update and upgrade Ubuntu packages
ubuntu/update: ansible/playbooks/ubuntu/update

.PHONY: ubuntu/version
ubuntu/version:
@lsb_release -a
1 change: 1 addition & 0 deletions tools.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
AWS_NUKE_VERSION=v2.25.0
GOMPLATE_VERSION=3.11.3
TERRAFORM_DOCS_VERSION=0.16.0

0 comments on commit d61932a

Please sign in to comment.