Skip to content

Commit

Permalink
added workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Nov 20, 2023
1 parent 177e021 commit b8977cb
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
version: 2
updates:
- package-ecosystem: composer
directory: /
schedule:
interval: weekly
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
- package-ecosystem: composer
directory: /tests
schedule:
interval: weekly
66 changes: 66 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: tests

on:
push:
pull_request:

jobs:
linux_tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [ 8.0, 8.1 ]

name: PHP ${{ matrix.php }} on Linux

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, http
tools: composer:v2
coverage: none

- name: Install dependencies
run: composer install --no-interaction --prefer-dist

- name: Execute tests
run: composer run test

windows_tests:
runs-on: windows-latest
strategy:
fail-fast: true
matrix:
php: [ 8.0, 8.1 ]

name: PHP ${{ matrix.php }} on Windows

steps:

- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, http
tools: composer:v2
coverage: none
ini-values: memory_limit=512M

- name: Install dependencies
run: composer install --no-interaction --prefer-dist

- name: Execute tests
run: composer run test

0 comments on commit b8977cb

Please sign in to comment.