From ef788d4b091edf8e10b72dc20a66d3c9fbe07c57 Mon Sep 17 00:00:00 2001 From: Daniel Gomes Pereira Date: Tue, 23 Jan 2024 12:14:38 +0000 Subject: [PATCH] Update blank.yml --- .github/workflows/blank.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 2914972..150cc99 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -2,7 +2,7 @@ name: CI on: # Triggers the workflow on push or pull request events but only for the "master" branch push: - branches: [ "master" ] + branches: [ "master", "feature/*" ] pull_request: branches: [ "master" ] @@ -12,7 +12,7 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This is the job for merge requests - mergeRequest: + install: # The type of runner that the job will run on runs-on: ubuntu-latest @@ -20,21 +20,24 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v3 - # Runs a single command using the runners shell - name: Install dependencies run: echo I am installing stuff with npm install... - # Runs a set of commands using the runners shell + unit-tests: + runs-on: ubuntu-latest + needs: [install] + steps: - name: Unit Tests run: | echo I am running npm run test, echo wow, everything is passing so far. - # This is the job for deploying deploy: runs-on: ubuntu-latest - environment: main + needs: [unit-tests] + environment: + name: main steps: - - name: Install dependencies - run: echo I am installing stuff with npm install... + - name: Deploy artifacts + run: echo I am deploying the artifacts