Skip to content

another update on multiple work flow #3

another update on multiple work flow

another update on multiple work flow #3

name: Build, Test and Deploy
on:
- push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Cowsay Program
run: sudo apt-get install cowsay -y
- name: Execute Cowsay Command
run: cowsay -f dragon "Run for cover, I am a DRAGON......RAWR" >> dragon.txt
- name: Sleep for 30 seconds
run: sleep 30
test:
needs: build
runs-on: ubuntu-latest
steps:
- name: Sleep for 10 seconds
run: sleep 10
- name: Test file exists
run: grep -i "dragon" dragon.txt
deploy:
needs: test
runs-on: ubuntu-latest
steps:
- name: Read File
run: cat dragon.txt
- name: Deploy
run: echo "Deploying......."