From c9ac100bc18d4629c9bfbb29470e06680beca1ec Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Mon, 31 Oct 2022 13:44:27 +0530 Subject: [PATCH] ci: add test script --- .github/workflows/build.yml | 4 ---- .github/workflows/test.yml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1bfe497a..c587e46b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,6 @@ name: Build on: - push: - branches: [$default-branch] - paths-ignore: - - '**.md' pull_request: paths-ignore: - '**.md' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..e1f3190b --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,32 @@ +name: Test + +on: + push: + branches: [$default-branch] + paths-ignore: + - '**.md' + pull_request: + paths-ignore: + - '**.md' + workflow_dispatch: + +jobs: + setup_and_build: + runs-on: macos-11 + steps: + - name: Setup node + uses: actions/setup-node@v2 + with: + node-version: '16.13.1' + + - name: Set yarn version + run: yarn set version 1.22.18 + + - name: Checkout Books + uses: actions/checkout@v2 + + - name: Install Dependencies + run: yarn + + - name: Yarn Tests + run: yarn test \ No newline at end of file