Merge pull request #58 from YDX-2147483647/ci #96
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: Check | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| yaml: | |
| name: Check projects.yaml | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Fetch projects.yaml | |
| uses: actions/checkout@v5 | |
| with: | |
| sparse-checkout: | | |
| projects.yaml | |
| justfile | |
| scripts | |
| sparse-checkout-cone-mode: false | |
| - uses: taiki-e/install-action@v2 | |
| with: | |
| tool: just | |
| - name: Install boon and yq | |
| run: | | |
| wget https://github.com/santhosh-tekuri/boon/releases/download/v0.6.1/boon-x86_64-unknown-linux-gnu.tar.gz | |
| tar -xzf boon-x86_64-unknown-linux-gnu.tar.gz | |
| sudo mv boon /usr/local/bin/boon | |
| curl -sS https://webi.sh/yq | sh | |
| source ~/.config/envman/PATH.env | |
| - run: just bootstrap | |
| - name: Validate according to the schema | |
| run: | | |
| boon scripts/projects.schema.json projects.yaml | |
| - name: Check the uniqueness | |
| shell: bash | |
| run: | | |
| just check-uniq | tee -a $GITHUB_STEP_SUMMARY |