Skip to content

Commit

Permalink
Add pipelines (#2)
Browse files Browse the repository at this point in the history
* Add pipelines

* Lint

* Set matrix to just two

* Maybe now?

* Maybe now?

* Maybe now?

* Change config

* Update unit tests workflow

* Change plugin name

* Final updates to readme
  • Loading branch information
JayWood authored Jan 17, 2022
1 parent 843fb86 commit 22003cf
Show file tree
Hide file tree
Showing 7 changed files with 114 additions and 7 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Node.js CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [15.x, 16.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- run: npm run build --if-present
38 changes: 38 additions & 0 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: PHP Coding Standards

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
lint:

runs-on: ubuntu-latest

strategy:
matrix:
php:
- "7.4"
- "8.0"
- "8.1"
dependencies:
- "locked"
include:
- php-version: "7.4"
composer-options: "--ignore-platform-reqs"

steps:
- uses: "actions/checkout@v2"
- uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php }}"
- uses: "ramsey/composer-install@v2"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "${{ matrix.composer-options }}"
- name: Lint
run: composer lint
- name: test
run: composer test
36 changes: 36 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: PHP Unit

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
lint:

runs-on: ubuntu-latest

strategy:
matrix:
php:
- "7.4"
- "8.0"
- "8.1"
dependencies:
- "locked"
include:
- php-version: "7.4"
composer-options: "--ignore-platform-reqs"

steps:
- uses: "actions/checkout@v2"
- uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php }}"
- uses: "ramsey/composer-install@v2"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "${{ matrix.composer-options }}"
- name: Unit Tests
run: composer test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/node_modules/
/build/
/vendor/
*.cache
*.cache
*.zip
4 changes: 2 additions & 2 deletions plugin.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Plugin Name: Discord SSO
* Plugin URI: https://plugish.com
* Plugin Name: Simple Discord SSO
* Plugin URI: https://github.com/JayWood/simple-discord-sso
* Description: Allow discord users to sign in to your website using discord.
* Author: JayWood
* Author URI: https://plugish.com/
Expand Down
7 changes: 5 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Simple Discord SSO ( Single Sign-On )
**Requires at least:** 5.0
**Tested up to:** 5.8.3
**Stable tag:** 1.0.0
**Stable tag:** 1.0.1
**Requires PHP:** 7.4
**License:** GPLv2 or later
**License URI:** https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -86,5 +86,8 @@ process. Alternatively you can use the query parameter instead `/?discord=1`.

## Changelog

### 1.0
### 1.0.1
* Small updates to readme

### 1.0.0
* Initial release.
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: jaycodez
Tags: social login, discord, discord login, discord server
Requires at least: 5.0
Tested up to: 5.8.3
Stable tag: 1.0.0
Stable tag: 1.0.1
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -94,5 +94,8 @@ process. Alternatively you can use the query parameter instead `/?discord=1`.

== Changelog ==

= 1.0 =
= 1.0.1 =
* Small updates to readme

= 1.0.0 =
* Initial release.

0 comments on commit 22003cf

Please sign in to comment.