From 15bcb3dcdad4120690bcac498119020c69577b61 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..9daf64d05f --- /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: + tests_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