-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing extra actions.yml from workflow
- Loading branch information
1 parent
a8d6152
commit d13a4b2
Showing
4 changed files
with
44 additions
and
62 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |