diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-07-28 17:34:44 +0300 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-08-01 11:19:59 +0300 |
commit | 8a873e6f425812d516cd686b9e317781a1190be2 (patch) | |
tree | 86b1ad7b6fb297586a63c232ada8952fd1cc8aea | |
parent | 5bda9e4c4efd541a52c78135149f7bf68ee2668f (diff) |
Add github workflows for testing
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r-- | .github/workflows/test-master.yml | 34 | ||||
-rw-r--r-- | .github/workflows/test-stable21.yml | 34 |
2 files changed, 68 insertions, 0 deletions
diff --git a/.github/workflows/test-master.yml b/.github/workflows/test-master.yml new file mode 100644 index 0000000..8f935f2 --- /dev/null +++ b/.github/workflows/test-master.yml @@ -0,0 +1,34 @@ +name: Test master + +on: + pull_request: + push: + branches: + - main + - master + - stable* + +permissions: + contents: read + +jobs: + php-lint: + runs-on: ubuntu-latest + strategy: + matrix: + php-versions: ["7.4", "8.0", "8.1"] + + name: test-master + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up php ${{ matrix.php-versions }} + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + coverage: none + + - name: test-master + run: make test-master diff --git a/.github/workflows/test-stable21.yml b/.github/workflows/test-stable21.yml new file mode 100644 index 0000000..2345cd3 --- /dev/null +++ b/.github/workflows/test-stable21.yml @@ -0,0 +1,34 @@ +name: Test stable21 + +on: + pull_request: + push: + branches: + - main + - master + - stable* + +permissions: + contents: read + +jobs: + php-lint: + runs-on: ubuntu-latest + strategy: + matrix: + php-versions: ["7.4", "8.0"] + + name: test-stable21 + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up php ${{ matrix.php-versions }} + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + coverage: none + + - name: test-stable21 + run: make test-stable21 |