Skip to content

Commit

Permalink
Setup GitHub CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fguillot committed Apr 5, 2020
1 parent 96be8e9 commit 863cd51
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 40 deletions.
21 changes: 21 additions & 0 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
**Please, do not create duplicate issues**


### Actual behaviour


### Expected behaviour


### Steps to reproduce


### Configuration

- Plugin version:
- Kanboard version:
- Database type and version:
- PHP version:
- OS:
- Browser:

90 changes: 90 additions & 0 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: Unit Tests

on:
pull_request:
branches: [ master ]

jobs:
Sqlite:
runs-on: ubuntu-latest
container: kanboard/tests:latest
steps:
- name: Checkout Kanboard repo
uses: actions/checkout@v2
with:
repository: kanboard/kanboard
- name: Checkout Plugin repo
uses: actions/checkout@v2
with:
path: plugins/OAuth2
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Unit tests with Sqlite
run: ./vendor/bin/phpunit -c tests/units.sqlite.xml plugins/OAuth2/Test/

Postgres:
runs-on: ubuntu-latest
container: kanboard/tests:latest
services:
postgres:
image: postgres:9.4
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout Kanboard repo
uses: actions/checkout@v2
with:
repository: kanboard/kanboard
- name: Checkout Plugin repo
uses: actions/checkout@v2
with:
path: plugins/OAuth2
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Unit tests with Postgres
run: ./vendor/bin/phpunit -c tests/units.postgres.xml plugins/OAuth2/Test/
env:
DB_HOSTNAME: postgres
DB_PORT: ${{ job.services.postgres.ports[5432] }}

MariaDB:
runs-on: ubuntu-latest
container: kanboard/tests:latest
services:
mariadb:
image: mariadb:latest
env:
MYSQL_ROOT_PASSWORD: secret
ports:
- 3306:3306
options: >-
--health-cmd "mysqladmin ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout Kanboard repo
uses: actions/checkout@v2
with:
repository: kanboard/kanboard
- name: Checkout Plugin repo
uses: actions/checkout@v2
with:
path: plugins/OAuth2
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Unit tests with MariaDB
run: ./vendor/bin/phpunit -c tests/units.mysql.xml plugins/OAuth2/Test/
env:
DB_HOSTNAME: mariadb
DB_PASSWORD: secret
DB_PORT: ${{ job.services.mariadb.ports[3306] }}
38 changes: 0 additions & 38 deletions .travis.yml

This file was deleted.

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
OAuth2 Authentication
=====================

[![Build Status](https://travis-ci.org/kanboard/plugin-oauth2.svg?branch=master)](https://travis-ci.org/kanboard/plugin-oauth2)

Generic OAuth2 authentication plugin.

Author
Expand Down

0 comments on commit 863cd51

Please sign in to comment.