Skip to content

Commit 22c7ac6

Browse files
authored
Update blank.yml
1 parent 55943d7 commit 22c7ac6

File tree

1 file changed

+39
-3
lines changed

1 file changed

+39
-3
lines changed

.github/workflows/blank.yml

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
66
on:
@@ -24,7 +24,7 @@ jobs:
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

@@ -34,4 +34,40 @@ jobs:
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

0 commit comments

Comments
 (0)