mirror of
https://github.com/placeholder-soft/asdf-plugins.git
synced 2026-04-28 11:54:58 +08:00
31 lines
633 B
YAML
31 lines
633 B
YAML
name: Main workflow
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "plugins/*"
|
|
push:
|
|
paths:
|
|
- "plugins/*"
|
|
|
|
jobs:
|
|
check_plugin_registration:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js 14.x
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 14.x
|
|
|
|
- name: Install Prettier
|
|
run: npm install --global prettier
|
|
|
|
- name: Check formatting
|
|
run: prettier --check README.md
|
|
|
|
- name: Check new plugin is registered correctly
|
|
run: bash test_plugin.sh --diff origin/master ${{ github.sha }}
|