diff --git a/.github/workflows/js.yml b/.github/workflows/js.yml new file mode 100644 index 00000000..f795d273 --- /dev/null +++ b/.github/workflows/js.yml @@ -0,0 +1,27 @@ +name: Js + +on: + workflow_dispatch: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 2 + - uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + - name: Install npm dependencies + run: npm i --include=dev + - name: Test + run: npm run test \ No newline at end of file