-
Notifications
You must be signed in to change notification settings - Fork 50
47 lines (46 loc) · 1.21 KB
/
test.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
name: test
on:
push:
branches:
- master
tags-ignore:
- "*"
pull_request:
branches:
- "master"
jobs:
test:
container: ubuntu:focal
runs-on: ubuntu-latest
# We are running these tests for both awk variants
# See https://github.com/regolith-linux/regolith-i3xrocks-config/issues/107
strategy:
matrix:
awk: ["gawk", "mawk"]
steps:
- uses: actions/checkout@v2
- name: Prepare test environment
shell: bash
env:
DEBIAN_FRONTEND: noninteractive
run: |
apt update -qq
apt install --no-install-recommends -y curl ca-certificates iproute2 bc silversearcher-ag umockdev ${{ matrix.awk }}
cp tests/xrescat_mock /usr/bin/xrescat
cp tests/i3-msg_mock /usr/bin/i3-msg
- name: Run net-traffic test
shell: bash
run: |
umockdev-run -- tests/net-traffic_test.sh
- name: Run temp test
shell: bash
run: |
tests/temp_test.sh
- name: Run weather test
shell: bash
run: |
tests/weather_test.sh
- name: Run disk-capacity test
shell: bash
run: |
tests/disk-capacity_test.sh