Skip to content

Commit

Permalink
Added CI to enforce linting and type checking. (#263)
Browse files Browse the repository at this point in the history
* Added CI to enforce linting and type checking.

* Update type check

* Change job name

* Check diagnostics

* Add ags

* Update install script for ags

* update

* Fix sudo misspell

* Add which

* Added ags types repo as a submodule

* Update ci

* Update ci

* tsconfig update

* add types

* ci update

* Remove types directory initially

* remove temp types

* Testing ci checks with a type error.

* Revert type error
  • Loading branch information
Jas-SinghFSU authored Sep 16, 2024
1 parent 977b753 commit 3bf9e00
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
pull_request:
branches:
- master

jobs:
code_quality:
runs-on: ubuntu-latest

steps:
- name: Checkout main repository
uses: actions/checkout@v3

- name: Clone ags-types to temp dir
uses: actions/checkout@v3
with:
repository: Jas-SinghFSU/ags-types
path: temp-ags-types

- name: Copy types to types/
run: |
rm -rf types
mkdir -p types
cp -R temp-ags-types/types/* types/
rm -rf temp-ags-types
- name: Node Setup
uses: actions/setup-node@v3
with:
node-version: '21'

- name: Install Dependencies
run: npm install

- name: ESLint
run: npm run lint

- name: Type Check
run: npx tsc --noEmit --pretty --extendedDiagnostics
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "external/ags-types"]
path = external/ags-types
url = https://github.com/Jas-SinghFSU/ags-types.git
1 change: 1 addition & 0 deletions external/ags-types
Submodule ags-types added at 87b504

0 comments on commit 3bf9e00

Please sign in to comment.