Skip to content

Commit

Permalink
Update blank.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielgomesp authored Jan 23, 2024
1 parent a207b56 commit ef788d4
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

Expand All @@ -12,29 +12,32 @@ 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

# Steps represent a sequence of tasks that will be executed as part of the job
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

0 comments on commit ef788d4

Please sign in to comment.