Merge pull request #79 from pluginpal/feature/security-updates #224
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- monorepo | |
- 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 install | |
- name: Make build | |
run: yarn run build | |
- name: Run eslint | |
run: yarn run eslint | |
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: Install plugin dependencies | |
run: yarn install | |
- name: Build the packages | |
run: yarn run build | |
- name: Install playground dependencies | |
run: yarn playground:install | |
- name: Build the playground | |
run: NODE_ENV=ci yarn playground:build | |
- name: Run integration tests | |
run: NODE_ENV=ci yarn test:integration | |