From c308e219fa857a4cdb87df35bfdd5371c1072336 Mon Sep 17 00:00:00 2001 From: Milan Raj Date: Fri, 11 Mar 2022 17:18:39 -0600 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..382bb78b --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,22 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: 'main' + +on: + pull_request: + push: + branches: + - '**' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '16' + cache: 'npm' + - run: npm ci + - run: npm test