diff --git a/.github/workflows/javascript.yml b/.github/workflows/javascript.yml new file mode 100644 index 00000000..00ff915b --- /dev/null +++ b/.github/workflows/javascript.yml @@ -0,0 +1,36 @@ +name: Check syntax and build JS + +on: + pull_request: + +jobs: + test-javascript: + name: JavaScript Tests + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + id: setup-node + uses: actions/setup-node@v4 + with: + node_version: 22 + cache: npm + + - name: Install Dependencies + id: npm-ci + run: npm ci + + - name: Lint + id: npm-lint + run: npm run linkt + + - name: Check Format + id: npm-format-check + run: npm run format + + - name: Check Build + id: npm-build-check + run: npm run build