Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates and super-linter added #169

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/super-linter.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VALIDATE_ALL_CODEBASE=true
18 changes: 2 additions & 16 deletions .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Laravel PHPStan, Swagger and Pest
name: Laravel Swagger

on:
push:
Expand All @@ -25,7 +25,7 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Install Linux packages
run: sudo apt update && sudo apt install -y --no-install-recommends pyflakes git iverilog arachne-pnr arachne-pnr-chipdb fpga-icestorm fpga-icestorm-chipdb
run: sudo apt update && sudo apt install -y --no-install-recommends pyflakes3 git iverilog arachne-pnr arachne-pnr-chipdb fpga-icestorm fpga-icestorm-chipdb
- name: Install PHP
uses: shivammathur/setup-php@master
with:
Expand All @@ -40,8 +40,6 @@ jobs:
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist && yarn install --production
- name: Generate key
run: php artisan key:generate
- name: LaraStan
run: vendor/bin/phpstan analyse
- name: Security Check
run: php artisan security-check:now
- name: Swagger generate
Expand Down Expand Up @@ -70,15 +68,3 @@ jobs:
run: php artisan config:clear
- name: Route clear
run: php artisan route:clear
- name: Execute (Unit and Feature) tests via Pest
env:
DB_CONNECTION: mysql
DB_HOST: 127.0.0.1
DB_PORT: 33306
DB_DATABASE: badge
DB_USERNAME: root
DB_PASSWORD: root
DB_TEST_DATABASE: badge
DB_TEST_USERNAME: root
DB_TEST_PASSWORD: root
run: vendor/bin/pest
54 changes: 54 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
#################################
#################################
## Super Linter GitHub Actions ##
#################################
#################################
name: Lint Code Base

#
# Documentation:
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
#

#############################
# Start the job on all push #
#############################
on:
pull_request:
branches: main

###############
# Set the Job #
###############
jobs:
build:
# Name the Job
name: Lint Code Base
# Set the agent to run on
runs-on: ubuntu-latest

##################
# Load all steps #
##################
steps:
##########################
# Checkout the code base #
##########################
- name: Checkout Code
uses: actions/checkout@v3
with:
# Full git history is needed to get a proper
# list of changed files within `super-linter`
fetch-depth: 0

- run: cat .github/super-linter.env >> "$GITHUB_ENV"
################################
# Run Linter against code base #
################################
- name: Lint Code Base
uses: github/super-linter@v4
env:
# Change to 'master' if your main branch differs
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 3 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
"license": "MIT",
"type": "project",
"require": {
"php": "^8.0",
"php": "^8.1",
"ext-gd": "*",
"ext-gmp": "*",
"ext-json": "*",
"ext-zlib": "*",
"ext-mbstring": "*",
"ext-zlib": "*",
"asbiin/laravel-webauthn": "^2.0",
"bacon/bacon-qr-code": "^2.0",
"bepsvpt/secure-headers": "^7.2",
Expand Down Expand Up @@ -60,15 +60,11 @@
"fzaninotto/faker": "^1.9",
"jorijn/laravel-security-checker": "^2.3",
"mockery/mockery": "^1.3",
"nunomaduro/larastan": "^0.6.0",
"pestphp/pest": "^1.21",
"pestphp/pest-plugin-laravel": "^1.2",
"phan/phan": "^5.3",
"phpunit/phpunit": "^9.2",
"roave/security-advisories": "dev-latest",
"slevomat/coding-standard": "^7.1",
"squizlabs/php_codesniffer": "^3.6",
"vimeo/psalm": "^4.22"
"squizlabs/php_codesniffer": "^3.6"
},
"autoload": {
"classmap": [
Expand Down
Loading