Merge pull request #165 from yast/dependabot/npm_and_yarn/src/styleli… #192
This file contains 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
# See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions | |
name: CI | |
on: [push, pull_request] | |
jobs: | |
Package: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
distro: [ "tumbleweed", "leap_latest" ] | |
container: | |
image: registry.opensuse.org/yast/head/containers_${{matrix.distro}}/yast-ruby | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v2 | |
- name: Git Fix | |
# fix the ownership to pass a git security check | |
run: chown "$UID" . | |
- name: Prepare System | |
run: zypper --non-interactive in --no-recommends breeze5-icons npm-default | |
# if the included files are not up to date and there is a change in the | |
# generated file then the package build later fails | |
- name: Build QSS and CSS files | |
# reset possible package-lock changes | |
run: rake generate && git checkout src/package-lock.json | |
- name: Stylelint | |
run: cd src && npx gulp lint | |
- name: Package Build | |
run: yast-ci-ruby |