Skip to content

Commit

Permalink
Merge pull request #62 from michaelachrisco/61-gh-actions
Browse files Browse the repository at this point in the history
feat(build): Replace Circleci with GH Actions
  • Loading branch information
michaelachrisco committed Jun 18, 2024
2 parents c6055e6 + 3fb76c2 commit 7291de4
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 27 deletions.
27 changes: 0 additions & 27 deletions .circleci/config.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: PHP Build

on:
push:
branches:
- main

jobs:
build_php_version_82:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up PHP 8.2
uses: shivammathur/setup-php@v2
with:
php-version: 8.2

- name: Install dependencies
run: |
sudo composer self-update
composer install -n --prefer-dist --no-plugins
- name: Run tests
run: ./vendor/bin/kahlan -reporter=verbose

build_php_version_83:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up PHP 8.3
uses: shivammathur/setup-php@v2
with:
php-version: 8.3

- name: Install dependencies
run: |
sudo composer self-update
composer install -n --prefer-dist --no-plugins
- name: Run tests
run: ./vendor/bin/kahlan -reporter=verbose

0 comments on commit 7291de4

Please sign in to comment.