Skip to content

Commit

Permalink
GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
AydinHassan committed Jan 19, 2024
1 parent 68dafd5 commit 5b70f34
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: PhpSchool.io

on:
push:
branches: [ master ]
pull_request:
branches: [ master, online ]

jobs:
build:
runs-on: ubuntu-latest
name: Eslint
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Install NPM Dependencies
run: npm ci --no-audit --no-fund --prefer-offline

- name: Eslint
run: npm run lint
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:
name: PHP ${{ matrix.php }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2

- name: Install Dependencies
- name: Install PHP Dependencies
run: composer install --prefer-dist

- name: Run phpunit tests
Expand Down

0 comments on commit 5b70f34

Please sign in to comment.