Skip to content

Commit

Permalink
Removing extra actions.yml from workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
milind-daftari committed Oct 9, 2023
1 parent a8d6152 commit d13a4b2
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 62 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/action.yml

This file was deleted.

18 changes: 11 additions & 7 deletions .github/workflows/actions1.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# Homework 1 Part 2: Github Action to execute make and make tests
name: 'make'
on: [push]
on:
push:
paths:
- 'AppSec-Project-1/**'
jobs:
make:
make_job:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: execute make
run: make

run: |
cd AppSec-Project-1
make
- name: execute make test
run: make test
run: |
cd AppSec-Project-1
make test
42 changes: 24 additions & 18 deletions .github/workflows/actions2.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,39 @@
# Homework 2 Part 1: Github Action to run tests
name: 'tests'
on: [push]
on:
push:
paths:
- 'AppSec-Project-2/**'
jobs:
make:
test_job:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- uses: actions/checkout@v3
- name: Set up Python3
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Upgrade pip
run: python -m pip install --upgrade pip

run: |
cd AppSec-Project-2
python -m pip install --upgrade pip
- name: Install requirements
run: pip install -r requirements.txt

run: |
cd AppSec-Project-2
pip install -r requirements.txt
- name: Make migrations
run: python manage.py makemigrations LegacySite

run: |
cd AppSec-Project-2
python manage.py makemigrations LegacySite
- name: Migrate database
run: python manage.py migrate

run: |
cd AppSec-Project-2
python manage.py migrate
- name: Import DBs
run: bash import_dbs.sh

run: |
cd AppSec-Project-2
bash import_dbs.sh
- name: Run tests
run: python manage.py test
run: |
cd AppSec-Project-2
python manage.py test
13 changes: 9 additions & 4 deletions .github/workflows/hello.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# Homework 1 Part 1: Setting up your Environment
name: 'Hello World'
on: [push]
on:
push:
paths:
- 'AppSec-Project-1/**'
jobs:
hello_world:
hello_job:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Echo Hello World
run: echo "Hello World"
run: |
cd AppSec-Project-1
echo "Hello World"

0 comments on commit d13a4b2

Please sign in to comment.