Skip to content

Commit 3b1c525

Browse files
committed
Updated workflow
1 parent e450d23 commit 3b1c525

File tree

1 file changed

+15
-29
lines changed

1 file changed

+15
-29
lines changed

.github/workflows/push-main.yml

Lines changed: 15 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
# --------------------------------------------------------------------
9595
# PHPLINT VALIDATION
9696
# --------------------------------------------------------------------
97-
- name: "[ STEP 4 ] - PHPLint Validation"
97+
- name: "[ STEP 1 ] - PHPLint Validation"
9898
run: echo "OK"
9999

100100
- name: " -- Cache PHPLint"
@@ -113,7 +113,7 @@ jobs:
113113
# # --------------------------------------------------------------------
114114
# # PHP CS FIXER
115115
# # --------------------------------------------------------------------
116-
# - name: "[ STEP 5 ] - PHP CS Fixer"
116+
# - name: "[ STEP 2 ] - PHP CS Fixer"
117117
# run: echo "OK"
118118
#
119119
# - name: " -- Cache PHP CS Fixer"
@@ -132,7 +132,7 @@ jobs:
132132
# # --------------------------------------------------------------------
133133
# # STATIC CODE ANALYSIS
134134
# # --------------------------------------------------------------------
135-
# - name: "[ STEP 6 ] - Static Code Analysis"
135+
# - name: "[ STEP 3 ] - Static Code Analysis"
136136
# run: echo "OK"
137137
#
138138
# - name: " -- Cache PHP STAN"
@@ -160,33 +160,19 @@ jobs:
160160
# run: COMPOSER_PROCESS_TIMEOUT=3000 php composer.phar php-psalm
161161
#
162162
#
163-
# # --------------------------------------------------------------------
164-
# # BACKEND UNIT TESTS
165-
# # --------------------------------------------------------------------
166-
# - name: "[ STEP 7 ] - Backend Unit Tests"
167-
# run: echo "OK"
168-
#
169-
# - name: " -- Init DB for testing"
170-
# run: |
171-
# psql -U $DB_USER -d $DATABASE -h localhost -w -c "SELECT 'CREATE DATABASE $DATABASE 'WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = '$DATABASE');"
172-
# psql -U $DB_USER -d $DATABASE -h localhost -w -c "DROP TYPE IF EXISTS delivery_method CASCADE;"
173-
# psql -U $DB_USER -d $DATABASE -h localhost -w -c "DROP TYPE IF EXISTS gender_type CASCADE;"
174-
# psql -U $DB_USER -d $DATABASE -h localhost -w -c "ALTER DATABASE \"$DATABASE\" OWNER TO $DB_USER;"
175-
# psql -U $DB_USER -d $DATABASE -h localhost -w -c "CREATE EXTENSION IF NOT EXISTS pgcrypto;"
176-
# psql -U $DB_USER -d $DATABASE -h localhost -w -c "CREATE EXTENSION IF NOT EXISTS hstore;"
177-
# psql -U $DB_USER -d $DATABASE -h localhost -w < $SCHEMA
178-
# psql -U $DB_USER -d $DATABASE -h localhost -w -c "CREATE OR REPLACE FUNCTION lucy_decrypt(string TEXT, enc_key TEXT) RETURNS TEXT AS \$\$DECLARE decrypted_text TEXT; padding INTEGER; octet_length INTEGER;BEGIN decrypted_text = substring(decrypt(decode(NULLIF(string,''), 'base64'), enc_key::BYTEA, 'aes-cbc') FROM 17); octet_length = octet_length(decrypted_text::BYTEA); padding = get_byte(decrypted_text::BYTEA, octet_length - 1); RETURN convert_from(substring(decrypted_text::BYTEA FOR octet_length - padding), 'UTF8');END;\$\$ LANGUAGE plpgsql;"
179-
#
180-
# - name: " -- Run DB migrations"
181-
# run: php yiic migrate --interactive=0
182-
#
183-
# - name: " -- Run Unit Tests"
184-
# run: IS_GIT_ACTIONS=1 COMPOSER_PROCESS_TIMEOUT=3000 php /home/runner/work/phishing-web/phishing-web/protected/composer.phar tests-unit
185-
#
186-
# - name: " -- Git status"
187-
# run: git status
188-
#
163+
# --------------------------------------------------------------------
164+
# BACKEND UNIT TESTS
165+
# --------------------------------------------------------------------
166+
- name: "[ STEP 4 ] - Backend Unit Tests"
167+
run: echo "OK"
189168
#
169+
- name: " -- Run Unit Tests"
170+
run: IS_GIT_ACTIONS=1 COMPOSER_PROCESS_TIMEOUT=3000 composer tests
171+
172+
- name: " -- Git status"
173+
run: git status
174+
175+
190176
# # --------------------------------------------------------------------
191177
# # COMMIT CHANGES
192178
# # --------------------------------------------------------------------

0 commit comments

Comments
 (0)