AT-based link agregator. Mirror of https://github.com/likeandscribe/frontpage

Add lex check workflow (#291)

* Add lex check workflow

* Introduce dummy change

* Only run on PR

* Potential fix for code scanning alert no. 18: Workflow does not contain permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Test a change that breaks compat

* Revert "Test a change that breaks compat"

This reverts commit 16dde37c17af1a787b30814a4a300c129998e605.

* Revert "Introduce dummy change"

This reverts commit d06ac76cc3727ad03837fe407e5bb70a196caa8a.

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

authored by tom.sherman.is

Copilot Autofix powered by AI and committed by
GitHub
3f321ab0 781d6101

+65
+65
.github/workflows/lexicon-check.yml
···
··· 1 + name: Lex Check 2 + permissions: 3 + contents: read 4 + 5 + on: 6 + pull_request: 7 + paths: 8 + - "lexicons/fyi/**/*" 9 + 10 + jobs: 11 + lint: 12 + runs-on: ubuntu-latest 13 + steps: 14 + - name: Checkout code 15 + uses: actions/checkout@v4 16 + 17 + - name: Setup Go 18 + uses: actions/setup-go@v5 19 + with: 20 + go-version: "stable" 21 + cache: true 22 + 23 + - name: Cache glot binary 24 + uses: actions/cache@v4 25 + id: cache-glot 26 + with: 27 + path: ~/go/bin/glot 28 + key: ${{ runner.os }}-glot-671143193b640e1d1224b311f62acc54dd33b241 29 + restore-keys: | 30 + ${{ runner.os }}-glot- 31 + 32 + - name: Install glot 33 + if: steps.cache-glot.outputs.cache-hit != 'true' 34 + run: go install tangled.org/bnewbold.net/cobalt/cmd/glot@671143193b640e1d1224b311f62acc54dd33b241 35 + 36 + - name: Run lexicon lint 37 + run: glot lint lexicons/fyi/frontpage 38 + 39 + compat-check: 40 + runs-on: ubuntu-latest 41 + steps: 42 + - name: Checkout code 43 + uses: actions/checkout@v4 44 + 45 + - name: Setup Go 46 + uses: actions/setup-go@v5 47 + with: 48 + go-version: "stable" 49 + cache: true 50 + 51 + - name: Cache glot binary 52 + uses: actions/cache@v4 53 + id: cache-glot 54 + with: 55 + path: ~/go/bin/glot 56 + key: ${{ runner.os }}-glot-671143193b640e1d1224b311f62acc54dd33b241 57 + restore-keys: | 58 + ${{ runner.os }}-glot- 59 + 60 + - name: Install glot 61 + if: steps.cache-glot.outputs.cache-hit != 'true' 62 + run: go install tangled.org/bnewbold.net/cobalt/cmd/glot@671143193b640e1d1224b311f62acc54dd33b241 63 + 64 + - name: Run lexicon compatibility check 65 + run: glot compat lexicons/fyi/frontpage