Skip to content

Commit

Permalink
GitHub action for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tesujimath committed May 24, 2024
1 parent 38761ef commit 242c59b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: test suite
on: [push, pull_request]
env:
NU_VERSION: 0.93.0

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download Nushell $NU_VERSION
run: curl -L "https://github.com/nushell/nushell/releases/download/${NU_VERSION}/nu-${NU_VERSION}-x86_64-linux-gnu-full.tar.gz" | tar xzf
- name: Run
run: "./nu-${NU_VERSION}-x86_64-linux-gnu-full/nu" run-tests.nu
2 changes: 2 additions & 0 deletions run-tests.nu
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,5 @@ test_simple_file
test_cat_simple_file
test_nasty_values_from_file
test_mixed

print "All tests passed"

0 comments on commit 242c59b

Please sign in to comment.