FEATURE: tail background command outputs #23
Workflow file for this run
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: Execd Tests | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - 'components/execd/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.24.0' | |
| - name: Run golint | |
| run: | | |
| cd components/execd | |
| make golint | |
| - name: Build (Multi platform compile) | |
| run: | | |
| cd components/execd | |
| # | |
| make multi-build | |
| - name: Run tests | |
| run: | | |
| cd components/execd | |
| make test | |
| smoke: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.24.0' | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install make (Windows) | |
| if: matrix.os == 'windows-latest' | |
| shell: powershell | |
| run: choco install make -y | |
| - name: Build | |
| run: | | |
| cd components/execd | |
| make build | |
| - name: Run smoke test | |
| run: | | |
| cd components/execd | |
| chmod +x tests/smoke.sh | |
| ./tests/smoke.sh | |
| sleep 5 | |
| python3 tests/smoke_api.py | |
| - name: Show logs | |
| if: always() | |
| run: cat components/execd/execd.log |