Skip to content

Commit

Permalink
new multiple workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Issanovich committed Oct 30, 2024
1 parent 9475e7e commit 37e3c23
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/first_job.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/multiple-jobs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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 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......."

0 comments on commit 37e3c23

Please sign in to comment.