summaryrefslogtreecommitdiffstats
path: root/.github/workflows/cs.yml
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-04-23 20:06:43 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-04-23 20:06:43 +0200
commite9d34860cb69d49ac3789d53732bbe52d6c9f7d7 (patch)
tree6cee71621f06eba996fa891cda872a282890d93b /.github/workflows/cs.yml
parentcf3bc409b073407cb54ba655e5b30110cf828133 (diff)
downloadgohugo-theme-ed-e9d34860cb69d49ac3789d53732bbe52d6c9f7d7.tar.gz
Add initial GH workflow config
Diffstat (limited to '.github/workflows/cs.yml')
-rw-r--r--.github/workflows/cs.yml46
1 files changed, 46 insertions, 0 deletions
diff --git a/.github/workflows/cs.yml b/.github/workflows/cs.yml
new file mode 100644
index 0000000..0b24e63
--- /dev/null
+++ b/.github/workflows/cs.yml
@@ -0,0 +1,46 @@
+name: CS
+
+on:
+ push:
+ branches:
+ - master
+ - 'feature/**'
+ - 'release/**'
+ - 'fix/**'
+ paths-ignore:
+ - "README.md"
+ # The branches below must be a subset of the branches above
+ pull_request:
+ branches:
+ - master
+ paths-ignore:
+ - "README.md"
+
+jobs:
+ lint:
+ runs-on: ${{ matrix.os }}
+ name: Code linting
+
+ # The maximum number of minutes to let a workflow run
+ # before GitHub automatically cancels it. Default: 360
+ timeout-minutes: 30
+
+ strategy:
+ # When set to true, GitHub cancels
+ # all in-progress jobs if any matrix job fails.
+ fail-fast: false
+
+ matrix:
+ node:
+ - '14.x'
+ os:
+ - ubuntu-20.04
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v3
+
+ - name: Set up Node ${{ matrix.node }}
+ uses: actions/setup-node@v3
+ with:
+ node-version: ${{ matrix.node }}