Repository navigation
chore: remove the appliance code that moved to cryptos-appliance #420
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: GoLic | |
| # Verify every source file carries the Apache 2.0 license header. golic (Bugs5382's own | |
| # tool) is run through go-task (`task license`) -- the standard runner for every | |
| # project. `golic inject --dry -x` fails the check if a header is missing; it never | |
| # modifies files. Docs (**.md) are skipped -- they carry no header. | |
| on: | |
| pull_request: | |
| branches: [main] | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| push: | |
| branches: [main] | |
| paths-ignore: ['**.md'] | |
| # One run per PR per workflow: a new push cancels the older PR run. Pushes to | |
| # main are never cancelled, so every main commit keeps a result. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| permissions: | |
| contents: read | |
| jobs: | |
| golic: | |
| name: 🔏 License headers | |
| if: github.event.pull_request.draft != true | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: 'stable' | |
| - name: Install Task | |
| uses: arduino/setup-task@v2 | |
| with: | |
| # Pin an exact, existing go-task version. setup-task's `3.x` range | |
| # resolution mis-computes a nonexistent version (observed: v3.52.0 -> | |
| # 404 on download; latest real is v3.51.1), breaking the check on every | |
| # PR. Pinning skips the broken lookup entirely; bump deliberately. | |
| version: 3.51.1 | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Verify license headers | |
| run: | | |
| export PATH="${PATH}:$(go env GOPATH)/bin" | |
| task license |