From 183b53c2b2b989f6d8b336cbf3afe7ad07b5ebfa Mon Sep 17 00:00:00 2001 From: RohovAlex <47148269+RohovAlex@users.noreply.github.com> Date: Fri, 3 Mar 2023 11:32:01 +0200 Subject: [PATCH] github actions --- .github/workflows/node.js.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..cc88720 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,34 @@ +name: Testing CI + +on: + pull_request + +jobs: + build: + + runs-on: ${{ matrix.os }} + + strategy: + matrix: + node: + - 14 + - 16 + - 18 + - 19 + os: + - ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node }} + - uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - run: npm ci + - run: npm test