Skip to content

fix: formatting models json #4

fix: formatting models json

fix: formatting models json #4

Workflow file for this run

name: Testing using bats
on:
push:
branches:
- main
jobs:
test-bats:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Bats
run: |
sudo apt-get update
sudo apt-get install -y bats
- name: Run Bats tests
run: bats test/*.bats # Or the path to your Bats tests
- name: Generate models.json
run: |
models=$(find parsers -maxdepth 1 -name "*.sh" -printf '\t"%f",\n' | sed 's/\.sh",/",/g')
models="${models%,*}" # Remove the trailing comma and newline
printf '[\n%b\n]' "$models" > models.json
cat models.json