From 102456509670b252b86f4da6bf6e4648bcef2a72 Mon Sep 17 00:00:00 2001 From: Skyler Date: Mon, 8 Aug 2022 21:43:50 +0100 Subject: [PATCH 1/3] Add a basic lint action --- .github/workflows/lint.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..1d6a2e3 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,27 @@ +name: Lint & Compile + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "development" branch + push: + branches: [ "development" ] + pull_request: + branches: [ "development" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: yarn install --immutable + - name: Compile + run: tsc + - name: Run eslint + uses: mrdivyansh/eslint-action@v1.0.7 + - name: Run prettier + uses: actionsx/prettier@v2 + From 0703d86b95ff6ba3ae95a09703ea393d01199997 Mon Sep 17 00:00:00 2001 From: Skyler Date: Mon, 8 Aug 2022 21:48:59 +0100 Subject: [PATCH 2/3] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 09e29b7..57cf3c5 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "fuse.js": "^6.6.2", "humanize-duration": "^3.27.1", "immutable": "^4.1.0", - "jshaiku": "file:../haiku", + "jshaiku": "git+https://github.com/ClicksMinutePer/haiku.git#nucleus", "mongodb": "^4.7.0", "node-tesseract-ocr": "^2.2.1", "pastebin-api": "^5.1.1", From 0180851f1880c4ec0c03408d7d27b50d4e6326e0 Mon Sep 17 00:00:00 2001 From: Skyler Date: Mon, 8 Aug 2022 22:00:04 +0100 Subject: [PATCH 3/3] Use yarn build rather than bare TSC in CI --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1d6a2e3..600cffb 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/checkout@v3 - run: yarn install --immutable - name: Compile - run: tsc + run: yarn build - name: Run eslint uses: mrdivyansh/eslint-action@v1.0.7 - name: Run prettier