Skip to content

Commit ab37d35

Browse files
committed
feat: minor improvements in github workflows
1 parent 459013a commit ab37d35

4 files changed

Lines changed: 36 additions & 42 deletions

File tree

.github/workflows/bats.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/build-deb.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- name: Checkout code
12+
- name: Checkout repo
1313
uses: actions/checkout@v4
1414

15-
- name: Install build tools
15+
- name: Install deb build tools
1616
run: |
17-
sudo apt-get update
18-
sudo apt-get install -y build-essential devscripts debhelper fakeroot lintian
17+
sudo apt-get update -qq && \
18+
sudo apt-get install -yqq build-essential devscripts debhelper fakeroot lintian
1919
2020
- name: Set up Debian packaging
2121
run: |

.github/workflows/build-rpm.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12+
- name: Checkout repo
13+
uses: actions/checkout@v4
14+
1215
- name: Install RPM build tools
1316
run: |
14-
sudo apt-get update
15-
sudo apt-get install -y rpm rpm2cpio build-essential
16-
17-
- name: Checkout source
18-
uses: actions/checkout@v4
17+
sudo apt-get update -qq && \
18+
sudo apt-get install -yqq rpm rpm2cpio build-essential
1919
2020
- name: Set version and app name
2121
run: |

.github/workflows/tests.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Tests
2+
3+
on:
4+
# Triggers the workflow on push or pull request events but only for the "master" branch
5+
push:
6+
branches: [ "master" ]
7+
pull_request:
8+
branches: [ "master" ]
9+
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
jobs:
14+
tests:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repo
19+
uses: actions/checkout@v4
20+
21+
- name: Install bats
22+
run: |
23+
sudo apt-get update -qq && sudo apt-get install -yqq bats
24+
25+
- name: Run bats tests
26+
run: |
27+
cd $GITHUB_WORKSPACE && bats tests/*.bats

0 commit comments

Comments
 (0)