mirror of
https://github.com/penpot/penpot-plugins.git
synced 2025-01-07 15:39:49 -05:00
feat: add build to CI
This commit is contained in:
parent
ccc5f78777
commit
a4342094ce
2 changed files with 37 additions and 14 deletions
19
.github/actions/prepare/action.yml
vendored
Normal file
19
.github/actions/prepare/action.yml
vendored
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
description: Prepares the repo for a CI job
|
||||||
|
|
||||||
|
name: Prepare
|
||||||
|
|
||||||
|
runs:
|
||||||
|
steps:
|
||||||
|
- name: Setup Node.js
|
||||||
|
id: setup-node
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version-file: .nvmrc
|
||||||
|
cache: npm
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
id: npm-ci
|
||||||
|
run: npm ci
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
using: composite
|
32
.github/workflows/ci.yml
vendored
32
.github/workflows/ci.yml
vendored
|
@ -17,20 +17,8 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- uses: actions/checkout@v4
|
||||||
id: checkout
|
- uses: ./.github/actions/prepare
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Setup Node.js
|
|
||||||
id: setup-node
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version-file: .nvmrc
|
|
||||||
cache: npm
|
|
||||||
|
|
||||||
- name: Install Dependencies
|
|
||||||
id: npm-ci
|
|
||||||
run: npm ci
|
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
id: npm-lint
|
id: npm-lint
|
||||||
|
@ -39,3 +27,19 @@ jobs:
|
||||||
- name: Test
|
- name: Test
|
||||||
id: npm-test
|
id: npm-test
|
||||||
run: npm run test
|
run: npm run test
|
||||||
|
|
||||||
|
build:
|
||||||
|
name: Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: ./.github/actions/prepare
|
||||||
|
|
||||||
|
- name: Build runtime
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
|
- name: Build plugins
|
||||||
|
run: npm run build:plugins
|
||||||
|
|
||||||
|
- name: Build styles
|
||||||
|
run: npm run build:styles-example
|
||||||
|
|
Loading…
Reference in a new issue