From 62d19ddc4b70d7c1dba2988b38eb867c9ad3eb24 Mon Sep 17 00:00:00 2001 From: Dmitry Petrov Date: Thu, 20 Jun 2024 17:42:40 +0500 Subject: [PATCH] Create test.yml --- .github/workflows/test.yml | 21 +++++++++++++++++++++ 1 file changed, 21 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 0000000..22abe26 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,21 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Node.js CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - run: npm ci + - run: npm run check