[PR #53] [MERGED] Add continuous integration with github actions #98

Closed
opened 2025-11-20 04:16:02 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/antonkomarev/github-profile-views-counter/pull/53
Author: @rizkytegar
Created: 7/3/2022
Status: Merged
Merged: 7/8/2022
Merged by: @antonkomarev

Base: masterHead: master


📝 Commits (2)

  • 083d96b create continuous integration for PHP test
  • b883948 add docker test for continuous integration

📊 Changes

1 file changed (+31 additions, -0 deletions)

View changed files

.github/workflows/ci.yml (+31 -0)

📄 Description

Doing test projects with various operating systems and different PHP versions, Also added Docker Test

Setup PHP test

 php_test:
    name: PHP Test
    runs-on: ${{ matrix.operating-system }}
    strategy:
      matrix:
        operating-system: ['ubuntu-latest', 'windows-latest', 'macos-latest']
        php-versions: ['7.4', '8.0', '8.1']
    steps:
    - name: Setup PHP
      uses: shivammathur/setup-php@v2
      with:
        php-version: ${{ matrix.php-versions }}
        extensions: mbstring, intl
        ini-values: post_max_size=256M, max_execution_time=180
        coverage: xdebug
        tools: php-cs-fixer

The PHP version used is as follows:

['7.4', '8.0', '8.1']

The operating system used is as follows:

['ubuntu-latest', 'windows-latest', 'macos-latest']

PHP extensions :

extensions: mbstring, intl

Setup Docker Test

  docker_test:
    name: Build Docker Image Test
    runs-on: ubuntu-latest
    env:
      COMPOSE_FILE: docker-compose.yaml
    steps:
    - name: Checkout code
      uses: actions/checkout@v2
    - name: Build docker images
      run: docker-compose build

Run Docker Build

  - name: Build docker images
      run: docker-compose build

DEMO

View full results:

https://github.com/rizkytegar/github-profile-views-counter/actions/runs/2607304106

Take a look at the PHP test example:

https://github.com/rizkytegar/github-profile-views-counter/runs/7173221851?check_suite_focus=true

Take a look at the Docker test example:

https://github.com/rizkytegar/github-profile-views-counter/runs/7173221594?check_suite_focus=true


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/antonkomarev/github-profile-views-counter/pull/53 **Author:** [@rizkytegar](https://github.com/rizkytegar) **Created:** 7/3/2022 **Status:** ✅ Merged **Merged:** 7/8/2022 **Merged by:** [@antonkomarev](https://github.com/antonkomarev) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`083d96b`](https://github.com/antonkomarev/github-profile-views-counter/commit/083d96b26cbbf5a63137a506ca46c2c7e8aa5af8) create continuous integration for PHP test - [`b883948`](https://github.com/antonkomarev/github-profile-views-counter/commit/b88394847c0e0bd1fa5d3e9751b72e654dfd3430) add docker test for continuous integration ### 📊 Changes **1 file changed** (+31 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/ci.yml` (+31 -0) </details> ### 📄 Description Doing test projects with various operating systems and different PHP versions, Also added Docker Test ## Setup PHP test ``` php_test: name: PHP Test runs-on: ${{ matrix.operating-system }} strategy: matrix: operating-system: ['ubuntu-latest', 'windows-latest', 'macos-latest'] php-versions: ['7.4', '8.0', '8.1'] steps: - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-versions }} extensions: mbstring, intl ini-values: post_max_size=256M, max_execution_time=180 coverage: xdebug tools: php-cs-fixer ``` The PHP version used is as follows: ``` ['7.4', '8.0', '8.1'] ``` The operating system used is as follows: ``` ['ubuntu-latest', 'windows-latest', 'macos-latest'] ``` PHP extensions : ``` extensions: mbstring, intl ``` ## Setup Docker Test ``` docker_test: name: Build Docker Image Test runs-on: ubuntu-latest env: COMPOSE_FILE: docker-compose.yaml steps: - name: Checkout code uses: actions/checkout@v2 - name: Build docker images run: docker-compose build ``` Run Docker Build ``` - name: Build docker images run: docker-compose build ``` ## DEMO View full results: https://github.com/rizkytegar/github-profile-views-counter/actions/runs/2607304106 Take a look at the PHP test example: https://github.com/rizkytegar/github-profile-views-counter/runs/7173221851?check_suite_focus=true Take a look at the Docker test example: https://github.com/rizkytegar/github-profile-views-counter/runs/7173221594?check_suite_focus=true --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2025-11-20 04:16:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/github-profile-views-counter#98