-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(internal): re-work ci to be simpler to maintain
- Loading branch information
1 parent
59adcee
commit e0dabd2
Showing
9 changed files
with
481 additions
and
1,662 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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: | ||
|
@@ -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 | ||
|
@@ -184,8 +243,6 @@ jobs: | |
with: | ||
fetch-depth: 1 | ||
- uses: volta-cli/action@v1 | ||
with: | ||
node-version: 12.x | ||
- name: Cache pnpm modules | ||
uses: actions/cache@v3 | ||
with: | ||
|
@@ -195,7 +252,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 | ||
|
@@ -232,7 +289,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 | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.