Package changes #176
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |