From 7fe94663b551636a4a48a1e4288986ac8e9b1072 Mon Sep 17 00:00:00 2001 From: Alexander Danilov Date: Mon, 18 Mar 2024 23:42:48 +0500 Subject: [PATCH] Added GitHub Action to trigger testing --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 000000000..65ecc852c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: Tests +'on': + push: + pull_request: + types: + - opened + - synchronize + - reopened + +jobs: + test: + name: 'Node.js v18' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: '18' + - name: 'Cache node_modules' + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-node-18-${{ hashFiles('**/package.json') }} + restore-keys: | + ${{ runner.os }}-node-18- + - name: Install Dependencies + run: npm install + - name: Run All Node.js Tests + run: npm run test