mirror of
https://github.com/penpot/penpot-plugins.git
synced 2025-01-06 14:50:21 -05:00
45 lines
781 B
YAML
45 lines
781 B
YAML
name: Continuous Integration
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test-javascript:
|
|
name: JavaScript Tests & Linters
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: ./.github/actions/prepare
|
|
|
|
- name: Lint
|
|
id: npm-lint
|
|
run: npm run lint
|
|
|
|
- name: Test
|
|
id: npm-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
|