Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve CI a bit #1055

Merged
merged 1 commit into from
Dec 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 24 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Use Node 14
uses: actions/setup-node@v3
with:
node-version: 14.x
- name: Use Volta
uses: volta-cli/action@v4

- name: Node Modules Cache
uses: actions/cache@v2
id: cache-npm
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ci-yarn-${{ hashFiles('**/yarn.lock') }}

- name: Install Dependencies
if: steps.cache-npm.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile

- name: Lint
Expand Down Expand Up @@ -57,21 +57,29 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Use Node 14
uses: actions/setup-node@v3
with:
node-version: 14.x
- name: Use Volta
uses: volta-cli/action@v4
- name: Stash yarn.lock for cache key
run: cp yarn.lock __cache-key

- name: Node Modules Cache
uses: actions/cache@v2
id: cache-npm
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ci-yarn-${{ matrix.ember-version }}-${{ hashFiles('**/yarn.lock') }}
path: |
node_modules
package.json
yarn.lock
__env
key: ci-yarn-v3-${{ matrix.ember-version }}-${{ hashFiles('config/ember-try.js', '__cache-key') }}
restore-keys: |
ci-yarn-${{ hashFiles('yarn.lock') }}

- name: Install
run: yarn install --frozen-lockfile --ignore-engines
- name: Install Dependencies
if: steps.cache-npm.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile

- name: Run Tests
run: node_modules/.bin/ember try:one ${{ matrix.ember-version }} --skip-cleanup