Skip to content

Commit c63d03b

Browse files
authored
Setup linter
1 parent 10e31c1 commit c63d03b

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Spec CI
2+
3+
# Controls when the workflow will run
4+
on:
5+
# Triggers the workflow on push or pull request events but only for the main branch
6+
pull_request:
7+
branches: [ main ]
8+
9+
###############
10+
# Set the Job #
11+
###############
12+
jobs:
13+
build:
14+
name: Lint Code Base
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout Code
19+
uses: actions/checkout@v2
20+
with:
21+
# Full git history is needed to get a proper list of changed files within `super-linter`
22+
fetch-depth: 0
23+
24+
################################
25+
# Run Linter against code base #
26+
################################
27+
- name: Lint Code Base
28+
uses: github/super-linter/slim@v4@v4
29+
env:
30+
VALIDATE_ALL_CODEBASE: true
31+
DEFAULT_BRANCH: main
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
VALIDATE_MARKDOWN: true

0 commit comments

Comments
 (0)