From be44399e28ee4bcdcdbde0a8dd946d50452b81ea Mon Sep 17 00:00:00 2001 From: Ricardo Jorge Gomes Cravo <102293070+Ricardocravo@users.noreply.github.com> Date: Sat, 9 Dec 2023 22:13:21 +0000 Subject: [PATCH] feat: add yml script (#66) Update pull_request.yml --- .github/workflows/pull_request.yml | 32 +++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 30d74d25..6b198b22 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -1 +1,31 @@ -test \ No newline at end of file +name: Pull Request Automation + +on: + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install dependencies + run: yarn install + + - name: Check for dead code + run: yarn run ts-prune + + - name: Clean the code + run: yarn clean + + - name: Test pull request changes + run: yarn test \ No newline at end of file