File tree Expand file tree Collapse file tree 1 file changed +39
-3
lines changed
Expand file tree Collapse file tree 1 file changed +39
-3
lines changed Original file line number Diff line number Diff line change 11# This is a basic workflow to help you get started with Actions
22
3- name : CI
3+ name : CI/CD
44
55# Controls when the workflow will run
66on :
2424 echo -e "source src/shellunity\nTEST_MESSAGE Meu primeiro teste com shellunity" > teste.sh
2525 chmod +x teste.sh
2626 ./teste.sh
27- debianize :
27+ build :
2828 runs-on : ubuntu-latest
2929 needs : unit-tests
3030
3434 - name : Create a debian package
3535 run : |
3636 cd infra/build
37- ./debianize.sh; ls
37+ ./debianize.sh
38+
39+ - name : Install debian package
40+ run : sudo dpkg -i ./*.deb
41+
42+ - name : Test shellunity from cmd
43+ run : source shellunity; TEST_MESSAGE 'Meu primeiro teste com shellunity!'
44+
45+ - name : Test shellunity from script
46+ run : |
47+ echo -e "source shellunity\nTEST_MESSAGE Meu primeiro teste com shellunity" > teste.sh
48+ chmod +x teste.sh
49+ ./teste.sh
50+
51+ - name : Test documentation installation
52+ run : |
53+ man -f shellunity; man -w shellunity
54+ man -f shellunity-dev; man -w shellunity-dev
55+ man -f shellunity-user; man -w shellunity-user
56+
57+ delivery :
58+ runs-on : ubuntu-latest
59+ needs : build
60+
61+ steps :
62+ - uses : actions/checkout@v4
63+
64+ - name : Create a debian package
65+ run : |
66+ cd infra/build
67+ ./debianize.sh
68+ - name : Upload changelog artifact
69+ uses : actions/upload-artifact@v2
70+ with :
71+ name : package
72+ path : ./*.deb
73+ retention-days : 0
You can’t perform that action at this time.
0 commit comments