fix(deps): update module github.com/charmbracelet/glamour to v2.0.0 #298
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: Test GHA Command | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| test-gha: | |
| name: Test sb gha command | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout sb-go repository | |
| uses: actions/checkout@v6 | |
| with: | |
| path: sb-go | |
| - name: Checkout Saltbox repository | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: saltyorg/Saltbox | |
| path: saltbox | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: 'sb-go/go.mod' | |
| cache-dependency-path: sb-go/go.sum | |
| - name: Tune GitHub-hosted runner network | |
| run: sudo ethtool -K eth0 tx off rx off | |
| - name: Create required directories | |
| run: sudo mkdir -p /srv/git | |
| - name: Set ownership | |
| run: sudo chown -R runner:runner /srv/git | |
| - name: Symlink Saltbox repository | |
| run: ln -s $GITHUB_WORKSPACE/saltbox /srv/git/saltbox | |
| - name: Run tidy | |
| working-directory: sb-go | |
| run: make tidy | |
| - name: Run tests | |
| working-directory: sb-go | |
| run: sudo make test | |
| - name: Build sb binary | |
| working-directory: sb-go | |
| run: | | |
| make build | |
| sudo cp build/sb /usr/local/bin/sb | |
| /usr/local/bin/sb version | |
| - name: Print pip dependencies | |
| run: cat /srv/git/saltbox/requirements/requirements-saltbox.txt | |
| - name: Run sb gha command | |
| run: | | |
| set -x # Enable command tracing | |
| /usr/local/bin/sb gha | |
| echo "Exit code: $?" | |
| - name: Verify installation | |
| run: | | |
| echo "=== Checking Python venv ===" | |
| ls -la /srv/ansible/venv/bin/ | |
| /srv/ansible/venv/bin/python3 --version | |
| /srv/ansible/venv/bin/ansible --version | |
| - name: Check saltbox.fact | |
| run: | | |
| echo "=== Checking saltbox.fact ===" | |
| ls -la /srv/git/saltbox/ansible_facts.d/saltbox.fact | |
| /srv/git/saltbox/ansible_facts.d/saltbox.fact | |
| - name: Test Ansible syntax check | |
| run: | | |
| cd /srv/git/saltbox | |
| /srv/ansible/venv/bin/ansible-playbook saltbox.yml --syntax-check |