From 2dec77bbb739b92ec21ee15e3c7f2e1830b10592 Mon Sep 17 00:00:00 2001 From: samizdam Date: Mon, 25 Nov 2024 23:39:35 +0300 Subject: [PATCH] Add test to gitlab actions --- .github/workflows/jest.yml | 16 ++++++++++++++++ .github/workflows/npm-publish.yml | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/jest.yml diff --git a/.github/workflows/jest.yml b/.github/workflows/jest.yml new file mode 100644 index 0000000..75e1d43 --- /dev/null +++ b/.github/workflows/jest.yml @@ -0,0 +1,16 @@ +name: Test + +on: + push: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup node + uses: actions/setup-node@v4 + with: + node-version: 20 + - run: npm install + - run: npm test diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 372e57c..544c639 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 - run: npm ci - run: npm test @@ -25,7 +25,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 registry-url: https://registry.npmjs.org/ - run: npm ci - run: npx tsc