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
38 changes: 38 additions & 0 deletions .github/workflows/ci-reusable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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: ['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: Install project dependencies
run: |
npm install
npm link

- name: Run ESLint
run: |
npm run lint -- -- --report-unused-disable-directives --max-warnings 0
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@ module.exports = function (
store: 'pack',
buildDependencies: {
defaultWebpack: ['webpack/lib/'],
// eslint-disable-next-line no-undef
config: [__filename],
tsconfig: useTypeScript ? ['tsconfig.json'] : []
}
Expand Down
Loading