Skip to content

Commit

Permalink
Merge pull request #19 from trunk
Browse files Browse the repository at this point in the history
release/v1.1.2
  • Loading branch information
FaisalBudiono authored Oct 14, 2023
2 parents 9dbb7f7 + 329b93e commit a24533e
Show file tree
Hide file tree
Showing 5 changed files with 610 additions and 465 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "composer" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
51 changes: 51 additions & 0 deletions .github/workflows/code-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Testing

on:
workflow_call:
pull_request:
branches:
- trunk
- master

jobs:
static-scan-phase:
name: Static Scanning
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: php-actions/composer@v6
- name: Scanning
uses: php-actions/phpstan@v3
with:
path: app/ tests/
level: 0

secret-scan-phase:
name: Secret Scanning
runs-on: ubuntu-22.04
if: ${{ github.event_name == 'push' }}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: GitGuardian scan
uses: GitGuardian/[email protected]
env:
GITHUB_PUSH_BEFORE_SHA: ${{ github.event.before }}
GITHUB_PUSH_BASE_SHA: ${{ github.event.base }}
GITHUB_PULL_BASE_SHA: ${{ github.event.pull_request.base.sha }}
GITHUB_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }}

test-phase:
name: Run PHPUnit
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: php-actions/composer@v6
- uses: php-actions/phpunit@v3
with:
memory_limit: "512M"
4 changes: 1 addition & 3 deletions app/Rules/Enum/BackedEnumRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ protected function castValue(string $type, mixed $value): mixed
return intval($value);
}

if ($type === 'string') {
return (string) $value;
}
return (string) $value;
}

protected function getStringifiedValidValue(): string
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"require": {
"php": "^8.0.2",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "v10.14.1",
"laravel/framework": "^v10.14.1",
"laravel/sanctum": "^3.0",
"laravel/tinker": "^2.7",
"lcobucci/jwt": "^5.0",
Expand Down
Loading

0 comments on commit a24533e

Please sign in to comment.