Skip to content

Commit

Permalink
test cli-njk version
Browse files Browse the repository at this point in the history
  • Loading branch information
capsulecorplab committed Nov 2, 2023
1 parent 57453c6 commit 93a2875
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,18 @@
- name: Get TypeScript Compiler version
shell: tsc --version | sed 's/[[:alpha:]|(|[:space:]]//g'
register: installed_tsc_version
- name: Get cli-njk version
shell: njk --version
register: installed_cli_njk_version
- name: Display node tool versions
debug:
msg: "Node = {{ installed_node_version.stdout }} | npm = {{ installed_npm_version.stdout }} | npx = {{ installed_npx_version.stdout }} | yarn = {{ installed_yarn_version.stdout }}"
- name: Display TypeScript Compiler version
debug:
msg: "tsc = {{ installed_tsc_version.stdout }}"
- name: Display cli-njk version
debug:
msg: "cli-njk = {{ installed_cli_njk_version.stdout }}"
- name: Test node version
fail:
msg: "NodeJS Version Error: Expected {{ v_node_version }} | Found {{ installed_node_version.stdout }}"
Expand All @@ -140,6 +146,10 @@
fail:
msg: "TypeScript Compiler Version Error: Expected {{ typescript_version }} | Found {{ installed_tsc_version.stdout }}"
when: installed_tsc_version.stdout != typescript_version
- name: Test cli-njk version
fail:
msg: "cli-njk Version Error: Expected {{ cli_njk_version }} | Found {{ installed_cli_njk_version.stdout }}"
when: installed_cli_njk_version.stdout != cli_njk_version

roles:
- role: grzegorznowak.nvm_node
Expand Down

0 comments on commit 93a2875

Please sign in to comment.