Skip to content

Commit

Permalink
👷 Add bats tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jemrobinson committed May 20, 2024
1 parent 272b665 commit d89b4d2
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test_code.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Test code

# Run workflow on PRs and pushes to matching branches
on: # yamllint disable-line rule:truthy
push:
branches: [main]
pull_request:

jobs:
test_bash:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install bats
run: sudo apt-get update && sudo apt-get install bats
- name: Install ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4
- name: Install ruby dependencies
run: sudo gem install mustache
- name: Run tests
run: bats tests

0 comments on commit d89b4d2

Please sign in to comment.