From 0b29af158b232b87631b07099aab381776f54154 Mon Sep 17 00:00:00 2001 From: letnull19A Date: Sun, 7 Dec 2025 02:41:29 +0400 Subject: [PATCH] feat: Add GitHub Actions workflow for automated testing with Node.js --- .github/workflows/tests.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..711406d --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,34 @@ +name: Test + +on: + pull_request: + branches: + - main + +env: + NODE_VERSION: '20' + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Use Node.js ${{ env.NODE_VERSION }} + uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Build application + run: npm run build + + - name: Run tests + run: npm test + +