From 5129ab087001f30d31733a16dad35091335692ba Mon Sep 17 00:00:00 2001 From: Valentin Kiselev Date: Mon, 27 Feb 2023 15:40:29 +0300 Subject: [PATCH] ci: add ci --- .github/workflows/test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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 00000000..cde81916 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +name: Test + +on: + push: + branches: + - master + pull_request: + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Node 16.x + uses: actions/setup-node@v3 + with: + node-version: 16.x + cache: npm + - name: Install dependencies + run: npm ci + + - name: Run test + run: npm run test + + - name: Build the dist/index.js + run: npm run build