Skip to content
Merged
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
74 changes: 64 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,80 @@ name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
branches:
- main
- master
pull_request: {}

concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
lint:
runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
- run: yarn install --frozen-lockfile --ignore-engines
- run: yarn lint

test:
name: "Tests - Node ${{ matrix.node-version }}"
runs-on: "ubuntu-latest"

name: "${{ matrix.os }} - ${{ matrix.node-version }}"
runs-on: "${{ matrix.os }}-latest"
strategy:
fail-fast: false
matrix:
# Broccoli 4 is installed by default and requires node>=20.19
node-version: [20.x, 22.x, 24.x]

steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --frozen-lockfile --ignore-engines
- run: yarn lint
- run: yarn test

legacy-test:
name: "Legacy Tests - Node ${{ matrix.node-version }} - Broccoli ${{ matrix.broccoli-version }}"
runs-on: "ubuntu-latest"

strategy:
fail-fast: false
matrix:
node-version: [10.x, 12.x, 14.x]
os: ['windows', 'ubuntu']
broccoli-version: ["0.16.9", "1", "2", "3"]
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x, 24.x]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --frozen-lockfile
- run: yarn install --frozen-lockfile --ignore-engines
- run: yarn add broccoli@${{matrix.broccoli-version}} --ignore-engines
- run: yarn lint
- run: yarn test

windows-test:
name: "Windows smoke tests - Broccoli ${{ matrix.broccoli-version }}"
runs-on: "windows-latest"

strategy:
fail-fast: false
matrix:
broccoli-version: ["0.16.9", "1", "2", "3", "4"]

steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 16
- run: yarn install --frozen-lockfile --ignore-engines
- run: yarn add broccoli@${{matrix.broccoli-version}} --ignore-engines
- run: yarn test
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"clean": "rm -rf dist",
"lint": "eslint .",
"prepare": "yarn build",
"pretest": "multidep test/multidep.json",
"test": "yarn build && mocha",
"watch": "tsc --watch"
},
Expand All @@ -42,6 +41,7 @@
"@types/symlink-or-copy": "^1.2.0",
"@typescript-eslint/eslint-plugin": "^4.17.0",
"@typescript-eslint/parser": "^4.17.0",
"broccoli": "^4.0.0",
"broccoli-fixturify": "^0.3.0",
"chai": "^4.3.3",
"chai-as-promised": "^7.1.1",
Expand All @@ -52,7 +52,6 @@
"eslint-plugin-prettier": "^3.3.1",
"fixturify": "^2.1.0",
"mocha": "^8.3.1",
"multidep": "^2.0.2",
"prettier": "^2.2.1",
"release-it": "^14.4.1",
"release-it-lerna-changelog": "^3.1.0",
Expand All @@ -78,5 +77,9 @@
"release": true,
"tokenRef": "GITHUB_AUTH"
}
}
},
"resolutions": {
"quick-temp": "0.1.8"
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
Loading