From 31253b90fe6ccf7d1e7c1ef992da6d87256e29ee Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Sun, 17 Jul 2022 21:43:54 +0100 Subject: [PATCH] ci(common): run tests on pushes to common --- .github/workflows/common.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/common.yml diff --git a/.github/workflows/common.yml b/.github/workflows/common.yml new file mode 100644 index 000000000..85e329adc --- /dev/null +++ b/.github/workflows/common.yml @@ -0,0 +1,36 @@ +name: Common CI/CD + +on: + push: + branches: + - "staging" + - "release/*" + paths: + - "common/**" + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./common + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install Node.js 16 + uses: actions/setup-node@v2 + with: + node-version: 16.x + + - name: Install PNPM + uses: pnpm/action-setup@v2.0.1 + with: + version: 6.0.2 + + - name: Install Dependencies + run: pnpm i + + - name: Run Tests + run: pnpm test