From 5bf6b7ee84450790f4d518c2be6f5839420042c8 Mon Sep 17 00:00:00 2001 From: nwittstruck Date: Sat, 13 Apr 2024 15:10:32 +0200 Subject: [PATCH] chore: add yarn test to ci --- .../workflows/on_push_branch_execute_ci.yml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/on_push_branch_execute_ci.yml diff --git a/.github/workflows/on_push_branch_execute_ci.yml b/.github/workflows/on_push_branch_execute_ci.yml new file mode 100644 index 0000000..4214626 --- /dev/null +++ b/.github/workflows/on_push_branch_execute_ci.yml @@ -0,0 +1,26 @@ +name: frontend_on_push_branch_execute_ci_cd + +on: + push: + branches: [main] + # See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags + pull_request: + # Only branches and tags on the base are evaluated + branches: [main] + +env: + NODE_VERSION: "20.12" + +jobs: + runs-on: ubuntu-latest + yarn_test: + steps: + - name: Check out repository code + uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + cache: 'yarn' + - run: yarn install --frozen-lockfile + - run: yarn test \ No newline at end of file