doc: the core plugin deps must remain be enabled #112
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: Build and test project | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
name: Check formatting | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint | |
run: npm run lint | |
build: | |
runs-on: ubuntu-latest | |
name: Build project | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: npm ci | |
- name: Bundle | |
run: npm run bundle | |
- name: Package | |
run: npm run package-plugin | |
test: | |
runs-on: ubuntu-latest | |
name: Test project | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: npm ci | |
- name: Test | |
run: npm run test | |
- name: Diff PR test coverage vs default branch | |
id: testCoverageDiff | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: anuraag016/Jest-Coverage-Diff@V1.4 | |
with: | |
fullCoverageDiff: false | |
afterSwitchCommand: "npm ci" | |
delta: 0.5 |