Skip to content

Commit 88247d4

Browse files
committed
Added linter workflow.
1 parent c330c6e commit 88247d4

File tree

2 files changed

+56
-1
lines changed

2 files changed

+56
-1
lines changed

.github/workflows/linter.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
###########################
3+
###########################
4+
## Linter GitHub Actions ##
5+
###########################
6+
###########################
7+
name: Lint Code Base
8+
9+
#
10+
# Documentation:
11+
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
12+
#
13+
14+
#############################
15+
# Start the job on all push #
16+
#############################
17+
on:
18+
push:
19+
# branches-ignore: [master]
20+
# Remove the line above to run when pushing to master
21+
pull_request:
22+
branches: [master]
23+
24+
###############
25+
# Set the Job #
26+
###############
27+
jobs:
28+
build:
29+
# Name the Job
30+
name: Lint Code Base
31+
# Set the agent to run on
32+
runs-on: ubuntu-latest
33+
34+
##################
35+
# Load all steps #
36+
##################
37+
steps:
38+
##########################
39+
# Checkout the code base #
40+
##########################
41+
- name: Checkout Code
42+
uses: actions/checkout@v2
43+
44+
################################
45+
# Run Linter against code base #
46+
################################
47+
- name: Lint Code Base
48+
uses: github/super-linter@v3
49+
env:
50+
VALIDATE_ALL_CODEBASE: false
51+
DEFAULT_BRANCH: master
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616

1717
Learning data structures, algorithms, machine learning and various computer science constructs by programming practice from resources around the web.
1818

19-
[![Discord](https://img.shields.io/discord/611637065913729036)](https://discord.gg/bv5FU8t) [![CircleCI](https://circleci.com/gh/computer-science-engineering/learning-computer-science/tree/master.svg?style=svg)](https://circleci.com/gh/computer-science-engineering/learning-computer-science/tree/master) [![Actions Status](https://github.com/computer-science-engineering/learning-computer-science/workflows/build-test/badge.svg)](https://github.com/computer-science-engineering/learning-computer-science/actions) [![codecov](https://codecov.io/gh/computer-science-engineering/learning-computer-science/branch/master/graph/badge.svg)](https://codecov.io/gh/computer-science-engineering/learning-computer-science)
19+
[![Discord](https://img.shields.io/discord/611637065913729036)](https://discord.gg/bv5FU8t) [![CircleCI](https://circleci.com/gh/computer-science-engineering/learning-computer-science/tree/master.svg?style=svg)](https://circleci.com/gh/computer-science-engineering/learning-computer-science/tree/master)
20+
[![Actions Status](https://github.com/computer-science-engineering/learning-computer-science/workflows/build-test/badge.svg)](https://github.com/computer-science-engineering/learning-computer-science/actions)
21+
[![GitHub Super-Linter](https://github.com/computer-science-engineering/learning-computer-science/workflows/Lint%20Code%20Base/badge.svg)](https://github.com/computer-science-engineering/learning-computer-science/actions)
22+
[![codecov](https://codecov.io/gh/computer-science-engineering/learning-computer-science/branch/master/graph/badge.svg)](https://codecov.io/gh/computer-science-engineering/learning-computer-science)
2023

2124
[More project metadata badges [here](./documentation/project/metadata.md). More CI/CD badges [here](./documentation/development/ci-cd.md#current-status).]
2225

0 commit comments

Comments
 (0)