From 3b5ea6509828f0d92a9ac7e9f8ca3f4500968a0c Mon Sep 17 00:00:00 2001 From: Can Demiralp Date: Wed, 16 Nov 2022 16:30:41 +0100 Subject: [PATCH] Enable CI for repository (#10) * Create main.yml for CI * Code formatting * Remove composer validation * Update TruffleHog * Change PHP support matrix --- .github/workflows/main.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..9d6b743 --- /dev/null +++ b/.github/workflows/main.yml @@ -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