Skip to content

Commit

Permalink
Merge pull request #2061 from vrk-kpa/update_suomifi_palette
Browse files Browse the repository at this point in the history
Update suomifi palette colors, names and references
  • Loading branch information
Zharktas authored Oct 3, 2023
2 parents 2b4e931 + f125c45 commit fa23663
Show file tree
Hide file tree
Showing 40 changed files with 1,587 additions and 4,383 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,41 @@ jobs:
stylelint:
name: stylelint
runs-on: ubuntu-latest
container: node:14
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
cache-dependency-path: opendata-assets/package-lock.json

- name: cache node_modules
uses: actions/cache@v3
id: cache-node_modules
with:
path: ./opendata-assets/node_modules
key: ${{ runner.os }}-build-node_v20-${{ hashFiles('opendata-assets/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-node_v20-
- name: Authenticate npm registry
if: ${{ steps.cache-node_modules.outputs.cache-hit != 'true' }}
run: |
cat <<EOT >> .npmrc
@fortawesome:registry=https://npm.fontawesome.com/
//npm.fontawesome.com/:_authToken=$NPM_TOKEN
EOT
npm ci
working-directory: ./opendata-assets
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: install npm packages
if: ${{ steps.cache-node_modules.outputs.cache-hit != 'true' }}
run: npm ci
working-directory: ./opendata-assets

- name: run stylelint
run: $(npm bin)/stylelint "src/less"
run: npx stylelint "src/less" -f github
working-directory: ./opendata-assets

slack:
Expand Down
8 changes: 6 additions & 2 deletions opendata-assets/.stylelintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"extends": "stylelint-config-standard",
"extends": "stylelint-config-standard-less",
"rules": {
"no-descending-specificity": null
"no-descending-specificity": null,
"selector-class-pattern": null,
"selector-id-pattern": null,
"less/no-duplicate-variables": null,
"media-feature-range-notation": null
}
}
4 changes: 2 additions & 2 deletions opendata-assets/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var pump = require("pump");
var npmDist = require('gulp-npm-dist');
var rename = require('gulp-rename');
var imageminJpegoptim = require('imagemin-jpegoptim');
var gulpStylelint = require('gulp-stylelint');
var gulpStylelint = require("@ronilaukkarinen/gulp-stylelint");

var paths = {
src: {
Expand Down Expand Up @@ -97,7 +97,7 @@ gulp.task('lint', (done) => {
gulpStylelint({
failAfterError: true,
reporters:[
{formatter: 'verbose', console: true}
{formatter: 'string', console: true}
]})
], done)
});
Expand Down
Loading

0 comments on commit fa23663

Please sign in to comment.