Skip to content

Commit

Permalink
feat: add build to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfran committed Sep 9, 2024
1 parent ccc5f78 commit a434209
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 14 deletions.
19 changes: 19 additions & 0 deletions .github/actions/prepare/action.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 18 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
id: checkout
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
- uses: actions/checkout@v4
- uses: ./.github/actions/prepare

- name: Lint
id: npm-lint
Expand All @@ -39,3 +27,19 @@ jobs:
- 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

0 comments on commit a434209

Please sign in to comment.