Skip to content

Commit 7551084

Browse files
Merge pull request #26 from ember-cli/basic-tests
Import tests from @embroider/addon-blueprint
2 parents dd935dc + 377d8c5 commit 7551084

File tree

71 files changed

+9191
-740
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+9191
-740
lines changed

.github/workflows/ci.yml

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
name: CI
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
schedule:
10+
- cron: '0 3 * * 0' # every Sunday at 3am
11+
12+
env:
13+
CI: true
14+
15+
jobs:
16+
tests:
17+
name: Tests
18+
timeout-minutes: 5
19+
runs-on: ubuntu-latest
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
# how to say "not these" so we don't miss anything?
24+
# waiting on a an api from vitest for querying
25+
# the list of tests ahead of time before running them.
26+
#
27+
# https://github.com/vitest-dev/vitest/issues/2901
28+
#
29+
# It would be great if vitest had a flag to give us the JSON of all the tests,
30+
# so we could be sure we don't miss anything
31+
# and then generate this list from a previous C.I. job
32+
slow-test:
33+
# flags
34+
- addon-location
35+
- test-app-location
36+
- addon-only
37+
38+
# existing monorepo
39+
- monorepo with npm
40+
- monorepo with pnpm
41+
42+
# build-only tests for testing if the rollup config works at all
43+
- rollup-build
44+
- declarations-configuration
45+
46+
steps:
47+
- uses: actions/checkout@v4
48+
- uses: pnpm/action-setup@v4
49+
- uses: actions/setup-node@v4
50+
with:
51+
node-version: 18
52+
cache: pnpm
53+
- name: Install Dependencies
54+
run: pnpm install --frozen-lockfile
55+
- run: pnpm vitest --testNamePattern "${{ matrix.slow-test }}"
56+
working-directory: tests
57+
58+
59+
defaults_tests:
60+
name: "Slow tests: ${{ matrix.slow-test }}"
61+
timeout-minutes: 5
62+
runs-on: ubuntu-latest
63+
strategy:
64+
fail-fast: false
65+
matrix:
66+
slow-test:
67+
- defaults with npm
68+
- defaults with pnpm
69+
steps:
70+
- uses: actions/checkout@v4
71+
- uses: pnpm/action-setup@v4
72+
- uses: actions/setup-node@v4
73+
with:
74+
node-version: 18
75+
cache: pnpm
76+
- name: Install Dependencies
77+
run: pnpm install --frozen-lockfile
78+
- run: pnpm vitest --testNamePattern "${{ matrix.slow-test }}"
79+
working-directory: tests
80+
81+
typescript_tests:
82+
name: "Slow tests: ${{ matrix.slow-test }}"
83+
timeout-minutes: 5
84+
runs-on: ubuntu-latest
85+
strategy:
86+
fail-fast: false
87+
matrix:
88+
slow-test:
89+
- typescript with npm
90+
- typescript with pnpm
91+
steps:
92+
- uses: actions/checkout@v4
93+
- uses: pnpm/action-setup@v4
94+
- uses: actions/setup-node@v4
95+
with:
96+
node-version: 18
97+
cache: pnpm
98+
- name: Install Dependencies
99+
run: pnpm install --frozen-lockfile
100+
- run: pnpm vitest --testNamePattern "${{ matrix.slow-test }}"
101+
working-directory: tests

files/.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
# misc
99
/coverage/
1010
pnpm-lock.yaml
11+
config/ember-cli-update.json

files/babel.publish.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = {
1212
'babel-plugin-ember-template-compilation',
1313
{
1414
targetFormat: 'hbs',
15-
transforms: []
15+
transforms: [],
1616
},
1717
],
1818
[

0 commit comments

Comments
 (0)