sddm/.github/workflows/checks.yml
Daniele Basso 308e8a88f7
Update CI
* Use Github image (downgrade to Ubuntu 22.04)
* Update checkout actions
* Use sudo for privileged actions
* Fix workflow
* Update build.yml

Co-authored-by: Pier Luigi Fiorini <pierluigi.fiorini@liri.io>
2022-11-17 13:00:56 +01:00

48 lines
1.1 KiB
YAML

name: Checks
on:
push:
branches:
- master
- develop
tags:
- v*
pull_request:
types:
- opened
- synchronize
- reopened
- edited
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
# No longer works as of 2020-11-03 due to npm 7.0.3 -> 7.0.7
# wip:
# if: "!contains(github.event.head_commit.message, 'ci skip') && github.event_name == 'pull_request'"
# runs-on: ubuntu-latest
# steps:
# - name: Work in progress
# uses: wip/action@master
xdg:
if: "!contains(github.event.head_commit.message, 'ci skip')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Validate XDG files
uses: liri-infra/xdg-validator-action@master
with:
strict: false
qml:
if: "!contains(github.event.head_commit.message, 'ci skip')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Validate QML and JavaScript files
uses: liri-infra/qmllint-action@master