Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tchevalleraud committed Dec 8, 2024
1 parent c74bce2 commit c3e47f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 24 deletions.
25 changes: 3 additions & 22 deletions .github/workflows/release-master.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create release
name: Create master release
on:
push:
branches:
Expand Down Expand Up @@ -44,27 +44,8 @@ jobs:
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: bash <(curl -Ls https://coverage.codacy.com/get.sh)
test-snyk:
needs: build
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: mbstring, intl
ini-values: post_max_size=256M, max_execution_time=180
coverage: xdebug
tools: php-cs-fixer, phpunit, composer
- uses: actions/checkout@v4
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/php@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
update_release_draft:
needs: build
update-release:
needs: test-codacy
permissions:
contents: write
pull-requests: write
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

> This is a PHP SDK for Apache Guacamole.
[![Master](https://github.com/tchevalleraud/php-sdk-gns3/actions/workflows/master.yaml/badge.svg)](https://github.com/tchevalleraud/php-sdk-gns3/actions/workflows/master.yaml)
[![CI](https://github.com/tchevalleraud/php-sdk-gns3/actions/workflows/release-master.yaml/badge.svg?branch=master)](https://github.com/tchevalleraud/php-sdk-gns3/actions/workflows/release-master.yaml)
![GitHub License](https://img.shields.io/github/license/tchevalleraud/php-sdk-gns3?label=License)
![GitHub Release](https://img.shields.io/github/v/release/tchevalleraud/php-sdk-gns3?display_name=tag&style=flat&label=Release)
![GitHub Release Date](https://img.shields.io/github/release-date/tchevalleraud/php-sdk-gns3?style=flat&label=Release%20date)

![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/tchevalleraud/php-sdk-gns3?style=flat&label=Code%20size)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/1ed1ca34f8064ba88683d1e08e0e74d8)](https://app.codacy.com/gh/tchevalleraud/php-sdk-gns3/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/1ed1ca34f8064ba88683d1e08e0e74d8)](https://app.codacy.com/gh/tchevalleraud/php-sdk-gns3/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/1ed1ca34f8064ba88683d1e08e0e74d8)](https://app.codacy.com/gh/tchevalleraud/php-sdk-gns3/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)

0 comments on commit c3e47f9

Please sign in to comment.