From 3649e1e79286104633afadd376339e242d6d7de2 Mon Sep 17 00:00:00 2001 From: Francys Reymer Date: Tue, 25 Jan 2022 10:44:38 -0400 Subject: [PATCH 1/3] fix isNull undefined --- resources/js/components/NestedFormField.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/components/NestedFormField.vue b/resources/js/components/NestedFormField.vue index b32fdd0..f2fbd94 100644 --- a/resources/js/components/NestedFormField.vue +++ b/resources/js/components/NestedFormField.vue @@ -183,7 +183,7 @@ export default { shouldDisplay.push(values.every((v) => v !== isNot)); } else if (isNotNull) { shouldDisplay.push(values.every((v) => Boolean(v))); - } else if (isNull) { + } else if (typeof isNull !== "undefined" && isNull) { shouldDisplay.push(values.every((v) => !Boolean(v))); } else if (typeof isMoreThan !== "undefined") { shouldDisplay.push(values.every((v) => v > isMoreThan)); From bf4d95f954188cb51307304095b5289e7586faef Mon Sep 17 00:00:00 2001 From: Francys Reymer <43302364+francysreymer@users.noreply.github.com> Date: Mon, 26 Jun 2023 11:18:00 +0200 Subject: [PATCH 2/3] Create laravel.yml --- .github/workflows/laravel.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/laravel.yml diff --git a/.github/workflows/laravel.yml b/.github/workflows/laravel.yml new file mode 100644 index 0000000..a5f2bc5 --- /dev/null +++ b/.github/workflows/laravel.yml @@ -0,0 +1,35 @@ +name: Laravel + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + laravel-tests: + + runs-on: ubuntu-latest + + steps: + - uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e + with: + php-version: '8.0' + - uses: actions/checkout@v3 + - name: Copy .env + run: php -r "file_exists('.env') || copy('.env.example', '.env');" + - name: Install Dependencies + run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist + - name: Generate key + run: php artisan key:generate + - name: Directory Permissions + run: chmod -R 777 storage bootstrap/cache + - name: Create Database + run: | + mkdir -p database + touch database/database.sqlite + - name: Execute tests (Unit and Feature tests) via PHPUnit + env: + DB_CONNECTION: sqlite + DB_DATABASE: database/database.sqlite + run: vendor/bin/phpunit From 204e254b19265f286e6d1c17db7979f1a4e8a38a Mon Sep 17 00:00:00 2001 From: Francys Reymer <43302364+francysreymer@users.noreply.github.com> Date: Mon, 26 Jun 2023 11:56:01 +0200 Subject: [PATCH 3/3] Update laravel.yml --- .github/workflows/laravel.yml | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/.github/workflows/laravel.yml b/.github/workflows/laravel.yml index a5f2bc5..81b45b2 100644 --- a/.github/workflows/laravel.yml +++ b/.github/workflows/laravel.yml @@ -12,24 +12,5 @@ jobs: runs-on: ubuntu-latest steps: - - uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e - with: - php-version: '8.0' - - uses: actions/checkout@v3 - - name: Copy .env - run: php -r "file_exists('.env') || copy('.env.example', '.env');" - - name: Install Dependencies - run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist - - name: Generate key - run: php artisan key:generate - - name: Directory Permissions - run: chmod -R 777 storage bootstrap/cache - - name: Create Database - run: | - mkdir -p database - touch database/database.sqlite - - name: Execute tests (Unit and Feature tests) via PHPUnit - env: - DB_CONNECTION: sqlite - DB_DATABASE: database/database.sqlite - run: vendor/bin/phpunit + - name: my-step + run: echo "Hello World!"