2024-03-07 03:01:18 -05:00
|
|
|
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:
|
2024-09-06 07:29:03 -05:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: ./.github/actions/prepare
|
2024-03-07 03:01:18 -05:00
|
|
|
|
|
|
|
- name: Lint
|
|
|
|
id: npm-lint
|
|
|
|
run: npm run lint
|
|
|
|
|
|
|
|
- name: Test
|
|
|
|
id: npm-test
|
|
|
|
run: npm run test
|
2024-09-06 07:29:03 -05:00
|
|
|
|
|
|
|
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
|