Skip to content

Commit

Permalink
feat: updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
devansh-webkul committed Oct 26, 2023
1 parent b5ea4f2 commit a202d9c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 7 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/linting_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Linting Tests

on: [push, pull_request]

jobs:
linting_tests:
runs-on: ${{ matrix.operating-systems }}

strategy:
matrix:
operating-systems: [ubuntu-latest]
php-versions: ['8.1']

name: PHP ${{ matrix.php-versions }} test on ${{ matrix.operating-systems }}

steps:
- uses: actions/checkout@v1
- name: Running Pint Test
uses: aglipanci/[email protected]
with:
testMode: true
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml → .github/workflows/pest_tests.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: CI
name: Pest Tests

on: [push, pull_request]

permissions:
contents: read

jobs:
tests:
pest_tests:
runs-on: ${{ matrix.operating-systems }}

strategy:
Expand All @@ -28,13 +28,15 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: curl, fileinfo, gd, intl, mbstring, openssl, pdo, pdo_mysql, tokenizer, zip
ini-values: error_reporting=E_ALL
tools: composer:v2

- name: Running Composer Install
run: composer install
Expand All @@ -51,8 +53,5 @@ jobs:
- name: Running Bagisto Installer
run: php artisan bagisto:install

- name: Running Code Style Test
run: vendor/bin/pint --test

- name: Running Test
- name: Running Pest Test
run: vendor/bin/pest --colors=always

0 comments on commit a202d9c

Please sign in to comment.