Skip to content

Commit

Permalink
chore: add floating deps test
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed May 20, 2022
1 parent c01ffd2 commit 6225eb7
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 32 deletions.
52 changes: 32 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: pnpm install
- name: Build and Assert Output
run: pnpm --filter ember-resources-build-test test
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v1
with:
name: dist
path: ${{ env.dist }}
Expand All @@ -59,7 +59,7 @@ jobs:
- name: Install Dependencies
run: pnpm install
- name: Download built package from cache
uses: actions/download-artifact@v3
uses: actions/download-artifact@v1
with:
name: dist
path: ${{ env.dist }}
Expand All @@ -70,22 +70,14 @@ jobs:
with:
path: ./build/estimate-bytes/comment.txt
tests:
name: Base Tests
name: Default Tests
timeout-minutes: 5
runs-on: ubuntu-latest
needs:
- build_test
strategy:
matrix:
node:
- "12"
- "14"
- "16"
steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@v1
with:
node-version: ${{ matrix.node }}
- name: Cache pnpm modules
uses: actions/cache@v3
with:
Expand All @@ -99,14 +91,33 @@ jobs:
- name: Install Dependencies
run: pnpm install
- name: Download built package from cache
uses: actions/download-artifact@v3
uses: actions/download-artifact@v1
with:
name: dist
path: ${{ env.dist }}
- name: Test with ${{ matrix.node }}
run: pnpm --filter ember-app run ember:test
- run: pnpm --filter ember-app run ember:test
floating-deps-tests:
name: Floating Deps Test
timeout-minutes: 5
runs-on: ubuntu-latest
needs:
- build_test
steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@v1
- uses: pnpm/action-setup@v2.2.1
with:
version: 6.32.1
- name: Install Dependencies
run: rm pnpm-lock.yaml && pnpm install
- name: Download built package from cache
uses: actions/download-artifact@v1
with:
name: dist
path: ${{ env.dist }}
- run: pnpm --filter ember-app run ember:test
try-scenarios:
name: ${{ matrix.ember-try-scenario }}
name: Ember Compatibility
timeout-minutes: 10
runs-on: ubuntu-latest
needs: tests
Expand Down Expand Up @@ -142,7 +153,7 @@ jobs:
- name: Install Dependencies
run: pnpm install
- name: Download built package from cache
uses: actions/download-artifact@v3
uses: actions/download-artifact@v1
with:
name: dist
path: ${{ env.dist }}
Expand All @@ -152,7 +163,7 @@ jobs:
node_modules/.bin/ember try:one ${{ matrix.ember-try-scenario }}
--skip-cleanup
typescript-compatibility:
name: types w/ ${{ matrix.typescript-scenario }}
name: Type checking - ${{ matrix.typescript-scenario }}
timeout-minutes: 5
runs-on: ubuntu-latest
continue-on-error: true
Expand All @@ -168,7 +179,7 @@ jobs:
- typescript@4.6
- typescript@next
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: volta-cli/action@v1
Expand All @@ -187,7 +198,7 @@ jobs:
- name: Install Dependencies
run: pnpm install
- name: Download built package from cache
uses: actions/download-artifact@v3
uses: actions/download-artifact@v1
with:
name: dist
path: ${{ env.dist }}
Expand All @@ -205,6 +216,7 @@ jobs:
- tests
- typescript-compatibility
- try-scenarios
- floating-deps-tests
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -223,7 +235,7 @@ jobs:
- name: Install Dependencies
run: pnpm install
- name: Download built package from cache
uses: actions/download-artifact@v3
uses: actions/download-artifact@v1
with:
name: dist
path: ${{ env.dist }}
Expand Down
31 changes: 19 additions & 12 deletions build/github-workflows/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,26 +75,33 @@ jobs:


tests:
name: Base Tests
name: Default Tests
<<: *ubuntu
needs: ['build_test']
strategy:
matrix:
node:
- "12"
- "14"
- "16"
steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@v1
with:
node-version: ${{ matrix.node }}
- *depCache
- *pnpm
- *install
- *getDist
- name: Test with ${{ matrix.node }}
run: pnpm --filter ember-app run ember:test
- run: pnpm --filter ember-app run ember:test

floating-deps-tests:
name: Floating Deps Test
<<: *ubuntu
needs: ['build_test']
steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@v1
# Same as Default tests, but:
# - no cache
# - "different" install command
- *pnpm
- name: 'Install Dependencies'
run: rm pnpm-lock.yaml && pnpm install
- *getDist
- run: pnpm --filter ember-app run ember:test

try-scenarios:
name: "Ember Compatibility"
Expand Down Expand Up @@ -172,7 +179,7 @@ jobs:
name: Release
<<: *ubuntu
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
needs: [tests, typescript-compatibility, try-scenarios]
needs: [tests, typescript-compatibility, try-scenarios, floating-deps-tests]

steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 6225eb7

Please sign in to comment.