Skip to content

Commit

Permalink
Merge pull request #211 from fox-forks/hyperupcall-tests
Browse files Browse the repository at this point in the history
test: Add regression test for non-existent env var
  • Loading branch information
rpdelaney committed Nov 30, 2023
2 parents 470d5a5 + b3b993f commit bcf78f7
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ charset = utf-8
[*.sh]
indent_size = 2

[*.{yaml,yml}]
indent_size = 2

[Makefile]
indent_style = tab
17 changes: 17 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -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'
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ repos:
additional_dependencies:
- mdformat-gfm
- mdformat-toc

# EOF
5 changes: 5 additions & 0 deletions tests/works_without_env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
#

unset -v XDG_DATA_HOME
make install

0 comments on commit bcf78f7

Please sign in to comment.