Merge pull request #211 from fox-forks/hyperupcall-tests

test: Add regression test for non-existent env var
This commit is contained in:
Ryan Delaney 2023-11-30 13:49:51 -05:00 committed by GitHub
commit bcf78f74be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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