Skip to content

Commit

Permalink
chore(internal): re-work ci to be simpler to maintain
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed May 28, 2022
1 parent 59adcee commit e0dabd2
Show file tree
Hide file tree
Showing 9 changed files with 481 additions and 1,662 deletions.
79 changes: 68 additions & 11 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 Down Expand Up @@ -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 Down Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
152 changes: 0 additions & 152 deletions .github/workflows/lint.yml

This file was deleted.

Loading

0 comments on commit e0dabd2

Please sign in to comment.