Skip to content

Merge pull request #182 from pluginpal/dependabot/npm_and_yarn/ellipt… #355

Merge pull request #182 from pluginpal/dependabot/npm_and_yarn/ellipt…

Merge pull request #182 from pluginpal/dependabot/npm_and_yarn/ellipt… #355

Workflow file for this run

name: Tests
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
- develop
jobs:
lint:
name: 'lint'
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Make build
run: yarn run build
- name: Run eslint
run: yarn run eslint
- name: Upload plugin build
uses: actions/upload-artifact@v3
with:
name: plugin-build
path: build
test:
name: 'test'
needs: [lint]
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
- name: Download plugin build
uses: actions/download-artifact@v3
with:
name: plugin-build
path: build
- name: Install plugin dependencies
run: yarn build:install
- name: Install playground dependencies
run: yarn playground:install --frozen-lockfile --unsafe-perm
- name: Install plugin into playground
run: yarn playground:install-plugin
- name: Install testing libraries
run: yarn test:install
- name: Build playground
run: NODE_ENV=ci yarn playground:build
- name: Run unit tests
run: NODE_ENV=ci yarn test:unit
- name: Run integration tests
run: NODE_ENV=ci yarn test:integration