Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-03-24 13:48:26 +0300
committerJoas Schilling <coding@schilljs.com>2020-03-24 17:37:55 +0300
commita209a64c5067c3ebd251659b4f964ba36426017d (patch)
treea26ad0305bedd9efde82afa263685b968d66aeec /.github
parentd7c954463db209bd19a81c96f6572f5e43abb8b9 (diff)
Update github workflows
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/lint.yml73
-rw-r--r--.github/workflows/test.yml31
2 files changed, 68 insertions, 36 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 847c71190..fc9bfa938 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -1,53 +1,74 @@
name: Lint
-on: [push]
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+ - stable*
jobs:
- php-linters:
+ php:
runs-on: ubuntu-latest
+
strategy:
matrix:
php-versions: ['7.2', '7.3', '7.4']
- name: php${{ matrix.php-versions }} lint
+
+ name: php${{ matrix.php-versions }}
steps:
- - name: Checkout
- uses: actions/checkout@master
- - name: Set up php${{ matrix.php-versions }}
- uses: shivammathur/setup-php@master
+ - uses: actions/checkout@v2
+
+ - name: Set up php ${{ matrix.php-versions }}
+ uses: shivammathur/setup-php@v1
with:
php-version: ${{ matrix.php-versions }}
coverage: none
+
- name: Lint
run: "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;"
- style-linter:
+ eslint:
runs-on: ubuntu-latest
- name: Style lint
+
+ strategy:
+ matrix:
+ node-versions: [12.x]
+
+ name: eslint node{{ matrix.node-versions }}
steps:
- - name: Checkout
- uses: actions/checkout@master
- - name: Set up Node
+ - uses: actions/checkout@v2
+
+ - name: Set up node ${{ matrix.node-versions }}
uses: actions/setup-node@v1
with:
- node-version: 12.x
- - name: Set up Stylelint 11
- run: npm i -g stylelint@11.0.0
- - name: Style lint
- run: $(which stylelint) -f verbose css
+ node-versions: ${{ matrix.node-versions }}
- eslint:
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Lint
+ run: npm run lint
+
+ stylelint:
runs-on: ubuntu-latest
- name: ESLint
+
+ strategy:
+ matrix:
+ node-versions: [12.x]
+
+ name: stylelint node{{ matrix.node-versions }}
steps:
- name: Checkout
uses: actions/checkout@master
+
- name: Set up Node
uses: actions/setup-node@v1
with:
- node-version: 12.x
- - name: NPM install
- run: npm i
- - name: ESLint
- run: npm run lint
- - name: Stylelint for vue files
- run: npm run stylelint
+ node-version: ${{ matrix.node-versions }}
+
+ - name: Install stylelint 11.0
+ run: npm i -g stylelint@11.0.0
+
+ - name: Lint
+ run: $(which stylelint) -f verbose css
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index ce2c52b8d..af8f4b656 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -1,19 +1,30 @@
name: Test
-on: [push]
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+ - stable*
jobs:
- jest:
+ build:
runs-on: ubuntu-latest
- name: ESLint
+
+ strategy:
+ matrix:
+ node-versions: [12.x]
+
+ name: node${{ matrix.node-versions }}
steps:
- - name: Checkout
- uses: actions/checkout@master
- - name: Set up Node
+ - uses: actions/checkout@v2
+
+ - name: Set up node ${{ matrix.node-versions }}
uses: actions/setup-node@v1
with:
- node-version: 12.x
- - name: NPM install
- run: npm i
- - name: jest
+ node-versions: ${{ matrix.node-versions }}
+
+ - name: Install dependencies
+ run: npm ci
+ - name: Run jest
run: npm run test:unit