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