ci(github): enable CI on branches & allow fork runs (#115) #71
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: | |
| push: | |
| branches: | |
| - "**" # run on pushes to any branch in this repository | |
| pull_request: | |
| branches: | |
| - "**" # still run on PRs | |
| workflow_dispatch: {} # allow manual runs from the Actions UI | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| 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 |