strapi-plugin-config-sync/.github/workflows/tests.yml

38 lines
827 B
YAML

name: Tests
on:
push:
branches:
- master
- develop
pull_request:
jobs:
lint:
name: 'lint'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'yarn'
- name: Install dependencies
run: yarn --ignore-scripts --frozen-lockfile
- name: Run eslint
run: yarn run eslint
# unit:
# name: 'unit'
# needs: [lint]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v2
# with:
# node-version: '14'
# cache: 'yarn'
# - name: Install dependencies
# run: yarn --ignore-scripts --frozen-lockfile
# - name: Run test
# run: yarn run -s test:unit