Skip to content

Commit

Permalink
Enable CI for repository (#10)
Browse files Browse the repository at this point in the history
* Create main.yml for CI

* Code formatting

* Remove composer validation

* Update TruffleHog

* Change PHP support matrix
  • Loading branch information
candemiralp authored Nov 16, 2022
1 parent 47c90e2 commit 3b5ea65
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on: ["push", "pull_request"]
name: Main Workflow

jobs:
run:
name: Run
runs-on: ubuntu-latest

strategy:
matrix:
php-version: [ 7.4, 8.0, 8.1 ]

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

- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: TruffleHog OSS
uses: trufflesecurity/trufflehog@main
with:
path: ./
base: ${{ github.event.repository.default_branch }}
head: HEAD
extra_args: --debug --only-verified

0 comments on commit 3b5ea65

Please sign in to comment.