-
Notifications
You must be signed in to change notification settings - Fork 3
75 lines (75 loc) · 3.37 KB
/
ci-cli.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: 'ci-cli'
on:
push:
paths:
- 'packages/cli/**'
jobs:
basic-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18.16.0
cache: 'yarn'
- run: yarn install
- run: yarn eslint packages/cli
- run: |
yarn workspace @storyblok/field-plugin-cli test
yarn workspace @storyblok/manifest-helper test
- run: yarn build:cli
standalone-vue2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Prepare test environment
uses: ./.github/actions/cli-checks-env
- run: yarn dev:cli --dir=${{runner.temp}} --pluginName=temp-single-field-plugin --template=vue2 --structure=standalone --packageManager=npm
- run: cd ${{runner.temp}}/temp-single-field-plugin && npm link @storyblok/field-plugin && npm run build
standalone-vue3:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Prepare test environment
uses: ./.github/actions/cli-checks-env
- run: yarn dev:cli --dir=${{runner.temp}} --pluginName=temp-single-field-plugin --template=vue3 --structure=standalone --packageManager=npm
- run: cd ${{runner.temp}}/temp-single-field-plugin && npm link @storyblok/field-plugin && npm run build
standalone-react:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Prepare test environment
uses: ./.github/actions/cli-checks-env
- run: yarn dev:cli --dir=${{runner.temp}} --pluginName=temp-single-field-plugin --template=react --structure=standalone --packageManager=npm
- run: cd ${{runner.temp}}/temp-single-field-plugin && npm link @storyblok/field-plugin && npm run build
monorepo-vue2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Prepare test environment
uses: ./.github/actions/cli-checks-env
- run: yarn dev:cli --dir=${{runner.temp}} --repoName=temp-monorepo-field-plugin --pluginName=test-plugin --template=vue2 --structure=monorepo --packageManager=npm
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
- run: cd ${{runner.temp}}/temp-monorepo-field-plugin && npm link @storyblok/field-plugin && npm run build --workspace=test-plugin
monorepo-vue3:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Prepare test environment
uses: ./.github/actions/cli-checks-env
- run: yarn dev:cli --dir=${{runner.temp}} --repoName=temp-monorepo-field-plugin --pluginName=test-plugin --template=vue3 --structure=monorepo --packageManager=npm
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
- run: cd ${{runner.temp}}/temp-monorepo-field-plugin && npm link @storyblok/field-plugin && cd packages/test-plugin && npx vite build
monorepo-react:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Prepare test environment
uses: ./.github/actions/cli-checks-env
- run: yarn dev:cli --dir=${{runner.temp}} --repoName=temp-monorepo-field-plugin --pluginName=test-plugin --template=react --structure=monorepo --packageManager=npm
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
- run: cd ${{runner.temp}}/temp-monorepo-field-plugin && npm link @storyblok/field-plugin && npm run build --workspace=test-plugin