add position in category order option #2
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: Validate and compile | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.21" | |
| cache-dependency-path: compiler/go.sum | |
| - name: Validate and compile | |
| run: make run | |
| - name: Check readme.md is up to date | |
| run: | | |
| git diff --exit-code readme.md || (echo "::error::readme.md is out of date. Run: make run" && exit 1) |