Implement yaml linting, fixes #63
This commit is contained in:
parent
0b92651bcc
commit
c8fc5fb44e
9
.github/workflows/test.yaml
vendored
9
.github/workflows/test.yaml
vendored
@ -11,7 +11,7 @@ jobs:
|
|||||||
name: Test metadata
|
name: Test metadata
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
env:
|
env:
|
||||||
YAML_VER: 0.0.6
|
YAML_VER: 0.0.7
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
ghc:
|
ghc:
|
||||||
@ -51,6 +51,9 @@ jobs:
|
|||||||
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
|
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
- name: install yamllint
|
||||||
|
run: pip install yamllint
|
||||||
|
|
||||||
- name: Update cabal cache
|
- name: Update cabal cache
|
||||||
run: cabal update
|
run: cabal update
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -60,9 +63,11 @@ jobs:
|
|||||||
cabal install --installdir="$HOME/.local/bin" --overwrite-policy=always --install-method=copy ghcup-gen
|
cabal install --installdir="$HOME/.local/bin" --overwrite-policy=always --install-method=copy ghcup-gen
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Check
|
- name: Check yaml
|
||||||
run: |
|
run: |
|
||||||
ghcup-gen -- check -f ghcup-${{ env.YAML_VER }}.yaml
|
ghcup-gen -- check -f ghcup-${{ env.YAML_VER }}.yaml
|
||||||
|
yamllint ghcup-${{ env.YAML_VER }}.yaml
|
||||||
|
python3 -c "import yaml ; stream = open('ghcup-${{ env.YAML_VER }}.yaml', 'r') ; yaml.safe_load(stream)"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Check tarballs
|
- name: Check tarballs
|
||||||
|
Loading…
Reference in New Issue
Block a user