test: Add regression test for non-existent env var

This commit is contained in:
Edwin Kofler 2023-11-27 03:07:24 -08:00
parent 470d5a5c08
commit b3b993f2ae
No known key found for this signature in database
GPG key ID: A1E60C1F1A423B08
4 changed files with 25 additions and 1 deletions

View file

@ -13,5 +13,8 @@ charset = utf-8
[*.sh]
indent_size = 2
[*.{yaml,yml}]
indent_size = 2
[Makefile]
indent_style = tab

17
.github/workflows/tests.yaml vendored Normal file
View file

@ -0,0 +1,17 @@
---
name: 'Run Tests'
on:
pull_request:
push:
branches: [main]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: 'Execute tests'
run: './run_tests'

View file

@ -20,5 +20,4 @@ repos:
additional_dependencies:
- mdformat-gfm
- mdformat-toc
# EOF

5
tests/works_without_env Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
#
unset -v XDG_DATA_HOME
make install