Add GHA workflow which runs grunt lint task.
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
new file mode 100644
index 0000000..6a32440
--- /dev/null
+++ b/.github/workflows/main.yaml
@@ -0,0 +1,40 @@
+name: CI
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+ schedule:
+ - cron: '0 1 * * *'
+
+permissions:
+ contents: read # for actions/checkout to fetch code
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+ cancel-in-progress: true
+
+jobs:
+ lint:
+ name: Lint
+ runs-on: ubuntu-latest
+ timeout-minutes: 5
+
+ steps:
+ - uses: actions/checkout@master
+
+ - uses: actions/setup-node@v3
+ with:
+ node-version: 18
+ cache: 'npm'
+
+ - name: Install dependencies
+ run: |
+ npm install
+
+ - name: Grunt lint
+ run: |
+ node_modules/.bin/grunt jshint