63 lines
1.5 KiB
YAML
63 lines
1.5 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- develop
|
|
pull_request:
|
|
|
|
jobs:
|
|
lint:
|
|
name: 'lint'
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node: [12, 14, 16]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
cache: 'yarn'
|
|
- name: Install dependencies
|
|
run: yarn --ignore-scripts --frozen-lockfile
|
|
- name: Run eslint
|
|
run: yarn run eslint
|
|
integration:
|
|
name: 'integration'
|
|
needs: [lint]
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node: [12, 14, 16]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
cache: 'yarn'
|
|
- name: Install dependencies
|
|
run: yarn playground:install --ignore-scripts --frozen-lockfile
|
|
- name: Install plugin
|
|
run: yarn add strapi-plugin-config-sync@boazpoolman/strapi-plugin-config-sync#${GITHUB_REF##*/}
|
|
- name: Run test
|
|
run: yarn run -s test:integration
|
|
# unit:
|
|
# name: 'unit'
|
|
# needs: [lint]
|
|
# runs-on: ubuntu-latest
|
|
# strategy:
|
|
# matrix:
|
|
# node: [12, 14, 16]
|
|
# steps:
|
|
# - uses: actions/checkout@v2
|
|
# - uses: actions/setup-node@v2
|
|
# with:
|
|
# node-version: ${{ matrix.node }}
|
|
# cache: 'yarn'
|
|
# - name: Install dependencies
|
|
# run: yarn --ignore-scripts --frozen-lockfile
|
|
# - name: Run test
|
|
# run: yarn run -s test:unit
|