Rename nata to nata.sh #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "src/nata/" | |
- "examples/config.json" | |
push: | |
branches: | |
- main | |
paths: | |
- "src/nata" | |
- "examples/config.json" | |
jobs: | |
my_test: | |
runs-on: ubuntu-latest | |
name: Install Bats and Run Tests | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Bats and Bats Libraries | |
id: setup-bats | |
uses: bats-core/[email protected] | |
with: | |
support-path: "${{ github.workspace }}/tests/bats-support" | |
assert-path: "${{ github.workspace }}/tests/bats-assert" | |
detik-path: "${{ github.workspace }}/tests/bats-detik" | |
file-path: "${{ github.workspace }}/tests/bats-file" | |
- name: Run Bats Tests | |
shell: bash | |
env: | |
BATS_LIB_PATH: ${{ steps.setup-bats.outputs.lib-path }} | |
TERM: xterm | |
run: bats test/test.bats |