Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/ci-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI

on:
push:
branches:
- develop
- master
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:

concurrency:
group: ci-branch-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
branch:
uses: ./.github/workflows/ci-reusable.yml
with:
checkout-ref: ${{ github.event.pull_request.head.sha || github.sha }}
secrets: inherit
16 changes: 16 additions & 0 deletions .github/workflows/ci-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CI

on:
pull_request:
types: [opened, synchronize, reopened]

concurrency:
group: ci-pr-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
pull-request:
uses: ./.github/workflows/ci-reusable.yml
with:
checkout-ref: ''
secrets: inherit
78 changes: 78 additions & 0 deletions .github/workflows/ci-reusable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: CI Pipeline

on:
workflow_call:
inputs:
checkout-ref:
description: 'Git ref to checkout (empty for default merge commit)'
type: string
required: false
default: ''

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: ['lts/*', 'node']

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ inputs.checkout-ref || github.ref }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Clone and setup Enact CLI
run: |
git clone --branch=develop --depth 1 https://github.com/enactjs/cli ../cli
pushd ../cli
npm install
npm link
popd

- name: Install project dependencies
run: npm install

- name: Run ESLint
run: npm run lint

- name: Starting agate/all-samples build
run: |
cd agate/all-samples
npm install
npm run pack
cd ../../

- name: Starting moonstone/all-samples build
run: |
cd moonstone/all-samples
npm install
npm run pack
cd ../../

- name: Starting sandstone/all-samples build
run: |
cd sandstone/all-samples
npm install
npm run pack
cd ../../

- name: Starting ui/all-samples build
run: |
cd ui/all-samples
npm install
npm run pack
cd ../../

- name: Starting my-theme-app build
run: |
cd my-theme-app
npm install
npm run pack
cd ../../
48 changes: 0 additions & 48 deletions .travis.yml

This file was deleted.

Loading