ft: add POSIX compatible sh install
#51
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: Go Test | |
| on: | |
| pull_request: | |
| branches: | |
| - "**" # Run on PRs to any branch | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| services: | |
| loki: | |
| image: grafana/loki:latest | |
| ports: | |
| - 3100:3100 | |
| options: >- | |
| --health-cmd "wget --quiet --tries=1 --spider http://127.0.0.1:3100/ready || exit 1" | |
| --health-interval 5s | |
| --health-timeout 5s | |
| --health-retries 20 | |
| # Mounting a config file isn't trivial in GitHub Actions, so use default config | |
| # If your tests require a custom config, bake it into a custom image | |
| steps: | |
| # 1. Checkout the PR code | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| # 2. Set up Go | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.23.5" | |
| - name: Download Go modules | |
| run: go mod tidy | |
| # Run tests | |
| - name: Run tests | |
| run: make test | |
| - uses: qltysh/qlty-action/coverage@v1 | |
| with: | |
| token: ${{ secrets.QLTY_COVERAGE_TOKEN }} | |
| files: cover.out |