From b9843c5d41188d6404d70746c4cbaa72e1a485a5 Mon Sep 17 00:00:00 2001 From: kirengamartial Date: Thu, 1 Aug 2024 21:04:08 +0200 Subject: [PATCH] setting github actions --- .github/PULL_REQUEST_TEMPLATE.MD | 23 --------------------- .github/workflows/config.yml | 34 ++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 23 deletions(-) delete mode 100644 .github/PULL_REQUEST_TEMPLATE.MD create mode 100644 .github/workflows/config.yml diff --git a/.github/PULL_REQUEST_TEMPLATE.MD b/.github/PULL_REQUEST_TEMPLATE.MD deleted file mode 100644 index d80b38c..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.MD +++ /dev/null @@ -1,23 +0,0 @@ -### What does this PR do? - -### Description of Task to be completed? - -### How should this be manually tested? - -#### N/A - -### Any background context you want to provide? - -#### N/A - -### Screenshots (if appropriate) - -#### N/A - -### Questions: - -#### N/A - -### What are the relevant pivotal tracker stories - -#### N/A \ No newline at end of file diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml new file mode 100644 index 0000000..c647e72 --- /dev/null +++ b/.github/workflows/config.yml @@ -0,0 +1,34 @@ +name: CI/CD + +on: + push: + branches: [develop] + pull_request: + branches: [develop] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: "20" + - name: Install dependencies + run: yarn install + - name: Build + run: yarn build + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: "20" + - name: Install dependencies + run: yarn install + - name: Run tests and coverage + run: yarn coverage