-
Notifications
You must be signed in to change notification settings - Fork 51
37 lines (33 loc) · 1.05 KB
/
test-modernizer-action.yml
File metadata and controls
37 lines (33 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Test github actions for Plugin Modernizer
on:
push:
pull_request:
workflow_dispatch:
jobs:
test-modernizer:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6.0.1
with:
submodules: false
- name: Validate
uses: ./.github/actions/modernizer-action
with:
command: 'validate'
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Fetch metadata on empty plugin
uses: ./.github/actions/modernizer-action
with:
command: 'fetch-metadata'
arguments: '--plugin-path plugin-modernizer-cli/src/test/resources/empty'
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Dry-run UpgradeToRecommendCoreVersion on empty plugin
uses: ./.github/actions/modernizer-action
with:
command: 'dry-run'
arguments: '--plugin-path plugin-modernizer-cli/src/test/resources/empty --recipe UpgradeToRecommendCoreVersion'
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}