From 258b81db99fc4e47ca9f8e95afadf8c298a6ce41 Mon Sep 17 00:00:00 2001 From: Paul Berberian Date: Wed, 4 Sep 2024 11:44:32 +0200 Subject: [PATCH] Add test linting github action --- .github/workflows/tests_check.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/tests_check.yml diff --git a/.github/workflows/tests_check.yml b/.github/workflows/tests_check.yml new file mode 100644 index 0000000000..e20d7afb4b --- /dev/null +++ b/.github/workflows/tests_check.yml @@ -0,0 +1,26 @@ +name: RxPlayer Tests Checks + +on: + pull_request: + types: [opened, synchronize, reopened] + paths: + - tests/** + +jobs: + scripts_lint: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [20.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + - run: npm install + - run: npm run lint:tests