From 73b7460e7ccfcbf88e63e0d664de14dd741a6b05 Mon Sep 17 00:00:00 2001 From: NaysKutzu Date: Sat, 23 Nov 2024 17:47:53 +0100 Subject: [PATCH] PUSH -> fix --- .github/codeql/codeql-config.yml | 5 ++ .github/workflows/backend.yml | 83 ++++++++++++++++---------------- 2 files changed, 46 insertions(+), 42 deletions(-) create mode 100755 .github/codeql/codeql-config.yml diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.yml new file mode 100755 index 0000000..ee60bc4 --- /dev/null +++ b/.github/codeql/codeql-config.yml @@ -0,0 +1,5 @@ +name: JavaScript CodeQL Configuration + +paths-ignore: + - node_modules + - dist \ No newline at end of file diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 4c3d490..504e712 100755 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -3,47 +3,46 @@ name: Backend Jobs on: [push, pull_request] permissions: - contents: read + contents: read jobs: - lint: - name: Backend Lint - runs-on: ubuntu-latest - defaults: - run: - working-directory: backend - steps: - - - name: Code Checkout - uses: actions/checkout@v4 - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: "8.3" - extensions: bcmath, curl, gd, mbstring, mysql, openssl, pdo, tokenizer, xml, zip - tools: composer:v2 - coverage: none - - name: Install dependencies - run: composer install --no-interaction --no-progress --no-suggest --prefer-dist - - name: Lint - run: composer lint - testes: - name: Backend Tests - runs-on: ubuntu-latest - defaults: - run: - working-directory: backend - steps: - - name: Code Checkout - uses: actions/checkout@v4 - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: "8.3" - extensions: bcmath, curl, gd, mbstring, mysql, openssl, pdo, tokenizer, xml, zip - tools: composer:v2 - coverage: none - - name: Install dependencies - run: composer install --no-interaction --no-progress --no-suggest --prefer-dist - - name: Test - run: composer test \ No newline at end of file + lint: + name: Backend Lint + runs-on: ubuntu-latest + defaults: + run: + working-directory: backend + steps: + - name: Code Checkout + uses: actions/checkout@v4 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: "8.3" + extensions: bcmath, curl, gd, mbstring, mysql, openssl, pdo, tokenizer, xml, zip + tools: composer:v2 + coverage: none + - name: Install dependencies + run: composer install --no-interaction --no-progress --no-suggest --prefer-dist + - name: Lint + run: composer lint + testes: + name: Backend Tests + runs-on: ubuntu-latest + defaults: + run: + working-directory: backend + steps: + - name: Code Checkout + uses: actions/checkout@v4 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: "8.3" + extensions: bcmath, curl, gd, mbstring, mysql, openssl, pdo, tokenizer, xml, zip + tools: composer:v2 + coverage: none + - name: Install dependencies + run: composer install --no-interaction --no-progress --no-suggest --prefer-dist + - name: Test + run: composer tests