Add GitHub Actions workflow config #10
This file contains hidden or 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
| name: ci.yml | ||
| on: | ||
| push: | ||
| branches: [ main ] | ||
| pull_request: | ||
| branches: [ main ] | ||
| workflow_dispatch: # Allows manual triggering | ||
| jobs: | ||
| test: | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false # Continue testing other platforms even if one fails | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - macos-latest | ||
| - windows-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| - name: Display environment | ||
| run: | | ||
| echo "Runner OS: ${{ runner.os }}" | ||
| echo "Matrix OS: ${{ matrix.os }}" | ||
| if command -v uname >/dev/null 2>&1; then | ||
| echo "System: $(uname -a)" | ||
| fi | ||
| echo "Shell: $0" | ||
| echo "Working directory: $(pwd)" | ||
| echo "User: $(whoami)" | ||
| - name: Run: ./ff-test | ||
| run: ./ff-test | ||
| shellcheck: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| - name: Install shellcheck | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install --assume-yes --no-install-recommends shellcheck | ||
| - name: Run shellcheck | ||
| run: shellcheck --shell=sh ./ff ./ff-test | ||