Skip to content

Commit

Permalink
Merge pull request #498 from NullVoxPopuli/upgrade-pnpm
Browse files Browse the repository at this point in the history
chore(internal): re-work ci to be simpler to maintain
  • Loading branch information
NullVoxPopuli authored May 28, 2022
2 parents 59adcee + c8ae2a0 commit f954242
Show file tree
Hide file tree
Showing 12 changed files with 548 additions and 1,702 deletions.
91 changes: 75 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,69 @@ env:
CI: true
dist: ember-resources/dist
jobs:
install_dependencies:
name: Install Dependencies
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@v1
- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
version: 7.1.2
- name: Install Dependencies
run: pnpm install
eslint:
name: ESLint
needs:
- install_dependencies
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
path:
- ./ember-resources
- ./testing/ember-app
steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@v1
- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
version: 7.1.2
- name: Install Dependencies
run: pnpm install
- name: ESLint
run: pnpm run lint:js
working-directory: ${{ matrix.path }}
commits:
name: Commit Messages
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: volta-cli/action@v1
- uses: wagoid/[email protected]
build_test:
name: Build Tests
needs:
- install_dependencies
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
Expand All @@ -27,7 +88,7 @@ jobs:
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
version: 6.32.1
version: 7.1.2
- name: Install Dependencies
run: pnpm install
- name: Build and Assert Output
Expand Down Expand Up @@ -55,7 +116,7 @@ jobs:
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
version: 6.32.1
version: 7.1.2
- name: Install Dependencies
run: pnpm install
- name: Download built package from cache
Expand Down Expand Up @@ -87,7 +148,7 @@ jobs:
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
version: 6.32.1
version: 7.1.2
- name: Install Dependencies
run: pnpm install
- name: Download built package from cache
Expand All @@ -107,7 +168,7 @@ jobs:
- uses: volta-cli/action@v1
- uses: pnpm/[email protected]
with:
version: 6.32.1
version: 7.1.2
- name: Install Dependencies
run: rm pnpm-lock.yaml && pnpm install
- name: Download built package from cache
Expand All @@ -117,7 +178,7 @@ jobs:
path: ${{ env.dist }}
- run: pnpm --filter ember-app run ember:test
try-scenarios:
name: "Compat: ${{ matrix.ember-try-scenario }}"
name: ${{ matrix.ember-try-scenario }}
timeout-minutes: 10
runs-on: ubuntu-latest
needs: tests
Expand All @@ -139,8 +200,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@v1
with:
node-version: 12.x
- name: Cache pnpm modules
uses: actions/cache@v3
with:
Expand All @@ -150,7 +209,7 @@ jobs:
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
version: 6.32.1
version: 7.1.2
- name: Install Dependencies
run: pnpm install
- name: Download built package from cache
Expand All @@ -164,7 +223,7 @@ jobs:
node_modules/.bin/ember try:one ${{ matrix.ember-try-scenario }}
--skip-cleanup
typescript-compatibility:
name: Type checking - ${{ matrix.typescript-scenario }}
name: ${{ matrix.typescript-scenario }}
timeout-minutes: 5
runs-on: ubuntu-latest
continue-on-error: true
Expand All @@ -178,14 +237,12 @@ jobs:
- [email protected]
- [email protected]
- [email protected]
- typescript@next
- typescript@4.7
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: volta-cli/action@v1
with:
node-version: 12.x
- name: Cache pnpm modules
uses: actions/cache@v3
with:
Expand All @@ -195,9 +252,9 @@ jobs:
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
version: 6.32.1
version: 7.1.2
- name: Install Dependencies
run: pnpm install
run: rm pnpm-lock.yaml && pnpm install
- name: Download built package from cache
uses: actions/download-artifact@v3
with:
Expand All @@ -207,7 +264,9 @@ jobs:
run: pnpm add --save-dev ${{ matrix.typescript-scenario }}
working-directory: testing/ember-app
- name: Type checking
run: pnpm --filter ember-app exec tsc --build
run: |
pnpm --filter ember-app exec tsc -v
pnpm --filter ember-app exec tsc --build
publish:
name: Release
timeout-minutes: 5
Expand All @@ -232,7 +291,7 @@ jobs:
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
version: 6.32.1
version: 7.1.2
- name: Install Dependencies
run: pnpm install
- name: Download built package from cache
Expand Down
152 changes: 0 additions & 152 deletions .github/workflows/lint.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
public-hoist-pattern[]=*@types*

# Required because broccoli has hard-coded paths to *all* packages
# not just relevant ones..........
public-hoist-pattern[]=eslint-plugin*
Expand Down
Loading

0 comments on commit f954242

Please sign in to comment.