Skip to content

Commit

Permalink
Update all the things
Browse files Browse the repository at this point in the history
* drop Node.js < 12 support
* updated all dependencies
* dropped unused devDependencies
* lint
* switch to GitHub Actions CI
* normalize whitespace
* ...and more
  • Loading branch information
XhmikosR committed Oct 9, 2021
1 parent be50b2c commit 3e3ae92
Show file tree
Hide file tree
Showing 20 changed files with 6,805 additions and 3,718 deletions.
15 changes: 6 additions & 9 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
# editorconfig.org
# top-most EditorConfig file
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = tab
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[.htaccess]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

[*.json]
indent_style = space
[{*.json,*.yml,*.yaml}]
indent_size = 2

[*.md]
trim_trailing_whitespace = false
indent_size = 2

[test/fixtures/*]
insert_final_newline = false
Expand Down
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* text=auto
# Enforce Unix newlines
* text=auto eol=lf
35 changes: 35 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "CodeQL"

on:
push:
branches:
- main
- "!dependabot/**"
pull_request:
# The branches below must be a subset of the branches above
branches:
- main
- "!dependabot/**"
schedule:
- cron: "0 0 * * 0"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: "javascript"

- name: Autobuild
uses: github/codeql-action/autobuild@v1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
27 changes: 27 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Lint

on: [push, pull_request]

env:
FORCE_COLOR: 2
NODE: 14 # The Node.js version to run lint on

jobs:
run:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE }}
cache: npm

- name: Install npm dependencies
run: npm ci

- name: Run lint
run: npm run lint
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Tests

on: [push, pull_request]

env:
FORCE_COLOR: 2

jobs:
test:
name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node: [12, 14, 16]
os: [ubuntu-latest, windows-latest]

steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: npm

- name: Install npm dependencies
run: npm ci

- name: Run tests
run: npm test

- name: Upload screenshots
uses: actions/upload-artifact@v2
if: failure()
with:
name: gulp-svg-sprite-ci-${{ matrix.node }}-${{ github.sha }}
path: tmp/
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
/.settings
/.buildpath
/.idea
/node_modules
/node_modules/
/npm-debug.log
/tmp
/tmp/
*.md.html
**/*.md.html
**/*.md.html
14 changes: 0 additions & 14 deletions .jshintrc

This file was deleted.

18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 3e3ae92

Please sign in to comment.