Skip to content

Commit

Permalink
Merge pull request #56 from sam14243/issue-50
Browse files Browse the repository at this point in the history
Implemented CI Pipeline for Linting
  • Loading branch information
DhanushNehru authored Oct 25, 2024
2 parents 67df548 + bf790dd commit a015318
Show file tree
Hide file tree
Showing 8 changed files with 2,253 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ Please include a concise summary of the change and any relevant details.

## PR Checklist

- [ ] My submission follows the guidelines in [Contribution.md](/Contribution.md).
- [ ] My submission follows the guidelines in [Contribution.md](https://github.com/DhanushNehru/breakout-game/blob/main/Contribution.md).
- [ ] I have tested `npm run lint` locally.
- [ ] All new and existing tests pass.
- [ ] The description of changes is clear and concise.
- [ ] I have documented any necessary changes to the codebase.
26 changes: 26 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lint

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
lint:
runs-on: ubuntu-latest

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

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16' # Specify your Node.js version

- name: Install dependencies
run: npm install

- name: Run Lint
run: npm run lint
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ You can use Gitpod in the cloud [![Gitpod Ready-to-Code](https://img.shields.io/
## Controls
- Move mouse to control the paddle, or use 'A'and the left arrow key or 'D' and the right arrow key for left and right movement respectively.

## Linting Status

![Lint Status](https://github.com/DhanushNehru/breakout-game/actions/workflows/lint.yml/badge.svg)


Created with <img src="https://user-images.githubusercontent.com/32013268/193729561-194dea3a-0255-406e-9329-ad5000f1f361.png" height="50px">

Expand Down
8 changes: 8 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import globals from "globals";
import pluginJs from "@eslint/js";


export default [
{languageOptions: { globals: globals.browser }},
pluginJs.configs.recommended,
];
Loading

0 comments on commit a015318

Please sign in to comment.