Skip to content

CI

CI #454

Workflow file for this run

name: CI
# These trigger patterns courtesy of https://github.com/broccolijs/broccoli/pull/436
on:
pull_request:
push:
# filtering branches here prevents duplicate builds from pull_request and push
branches:
- master
- 'v*'
- standalone-template-transform
# always run CI for tags
tags:
- '*'
env:
CI: true
jobs:
test:
name: Test
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version-file: package.json
- name: Load Cached Dependencies
uses: actions/cache@v4
with:
enableCrossOsArchive: true
path: |
node_modules
packages/*/node_modules
test-packages/*/node_modules
key: npm-${{ matrix.os }}-${{ hashFiles('yarn.lock') }}
restore-keys:
npm-${{ matrix.os }}-
npm-
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: '`glimmer-local-class-transform` tests'
run: yarn workspace glimmer-local-class-transform test
- name: '`rollup-plugin-preprocess-css-modules` tests'
run: yarn workspace rollup-plugin-preprocess-css-modules test
- name: v1 app with `ember-css-modules` and classic build
run: yarn workspace app-v1-ecm test:ember
- name: v1 app with `ember-css-modules` and `@embroider/webpack`
env: { EMBROIDER: 'true' }
run: yarn workspace app-v1-ecm test:ember
- name: v1 app with `ember-local-class` and `ember-auto-import`
run: yarn workspace app-v1-elc test:ember
- name: v1 app with `ember-local-class` and `@embroider/webpack`
env: { EMBROIDER: 'true' }
run: yarn workspace app-v1-elc test:ember
- name: v2 app
run: yarn workspace app-v2 test:ember