From db9120612f8b159f7afea0e0f1c5baa247538919 Mon Sep 17 00:00:00 2001 From: Harutyun Amirjanyan <85512003+MeruzhanHarutyunyan@users.noreply.github.com> Date: Wed, 24 Nov 2021 21:53:28 +0000 Subject: [PATCH] add ci script --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d00c7e4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +name: main +on: [push, repository_dispatch] +jobs: + build-and-test: + runs-on: ubuntu-latest + name: Build and test + steps: + - uses: styfle/cancel-workflow-action@0.6.0 + with: + access_token: ${{ github.token }} + + - uses: actions/checkout@v1 + + - uses: actions/setup-node@v2 + with: + node-version: '16.4' + + - run: npm install + + - run: npm test