Skip to content

Add GitHub Actions workflow for bats tests #1

Add GitHub Actions workflow for bats tests

Add GitHub Actions workflow for bats tests #1

Workflow file for this run

---
name: Test Scripts
'on':
push:
branches:
- main
- 'copilot/**'
paths:
- 'scripts/**'
- 'tests/**'
- '.github/workflows/test-scripts.yml'
pull_request:
paths:
- 'scripts/**'
- 'tests/**'
- '.github/workflows/test-scripts.yml'
workflow_dispatch: # Allow manual triggering for testing
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install bats
run: |
sudo apt-get update
sudo apt-get install -y bats
- name: Run shellcheck
run: |
sudo apt-get install -y shellcheck
shellcheck scripts/*.sh
- name: Run bats tests
run: |
bats tests/download-mozc-artifacts.bats