From 57dfd142617dddb89ce62621fb63a65b3b6b8dce Mon Sep 17 00:00:00 2001 From: Mykhailo Kovalskyi Date: Tue, 7 Mar 2023 23:32:45 +0100 Subject: [PATCH] chore: add ci.yml --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 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..34c7781 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,17 @@ +name: ci + +on: + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version-file: '.nvmrc' + - run: npm ci + - run: npm run build --if-present + - run: npm test