diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..600cffb --- /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: yarn build + - name: Run eslint + uses: mrdivyansh/eslint-action@v1.0.7 + - name: Run prettier + uses: actionsx/prettier@v2 + diff --git a/package.json b/package.json index f4a8ef3..43843f8 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",