-
Notifications
You must be signed in to change notification settings - Fork 7
88 lines (88 loc) · 3.46 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Build
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
#--------------------------------------------------
# Checkout and install tools
#--------------------------------------------------
- name: Checkout
uses: actions/checkout@v2
- name: 'Setup: Node.js'
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
check-latest: true
- name: 'Setup: update NPM'
shell: bash
run: npm install -g npm
- name: 'Setup: check tools'
shell: bash
run: |
node -v
npm -v
docker version
#--------------------------------------------------
# Test formatting with prettier
#--------------------------------------------------
- name: 'Init: install Node.js packages'
run: npm ci
- name: Test formatting with prettier
run: npm run prettier:check
#--------------------------------------------------
# Test ansible roles in Docker container
#--------------------------------------------------
- name: Build Docker image
run: |
docker build -q -t ansible:test .
docker images
- name: Start Docker container
run: docker run --name containertest -d -w /home/jhipster/app/playbooks/ ansible:test
- name: Display ansible version
run: docker exec -t containertest ansible --version
- name: tools
run: |
docker exec -t containertest ansible-playbook tools.yml -e ansible_become_pass=jhipster
docker exec -t containertest vim --version
docker exec -t containertest curl --version
docker exec -t containertest wget --version
- name: git
run: |
docker exec -t containertest ansible-playbook git.yml -e ansible_become_pass=jhipster -e 'git_username="Firstname Lastname"' -e git_email=yourmail@localhost
docker exec -t containertest git version
- name: zsh
run: |
docker exec -t containertest ansible-playbook zsh.yml -e ansible_become_pass=jhipster
docker exec -t containertest zsh --version
- name: openjdk21
run: |
docker exec -t containertest ansible-playbook openjdk21.yml -e ansible_become_pass=jhipster
docker exec -t containertest java -version
docker exec -t containertest javac -version
- name: Maven
run: |
docker exec -t containertest ansible-playbook maven.yml -e ansible_become_pass=jhipster -e maven_version=3.9.6
docker exec -t containertest mvn -version
- name: NodeJS
run: |
docker exec -t containertest ansible-playbook node.yml -e ansible_become_pass=jhipster -e node_version=20.15.1
docker exec -t containertest node -v
docker exec -t containertest npm -v
- name: docker
run: |
docker exec -t containertest ansible-playbook docker.yml -e ansible_become_pass=jhipster -u jhipster \
-e container_version=1.7.18-1 -e docker_version=27.0.3-1
docker exec -t containertest docker -v
docker exec -t containertest groups jhipster
- name: docker-compose
run: |
docker exec -t containertest ansible-playbook dockercompose.yml -e ansible_become_pass=jhipster -e docker_compose_version=2.28.1
docker exec -t containertest docker-compose version