Skip to content

Commit

Permalink
chore: Add volta config
Browse files Browse the repository at this point in the history
  • Loading branch information
cyril-sf committed Nov 8, 2024
1 parent 4d0d958 commit 3f6c404
Show file tree
Hide file tree
Showing 5 changed files with 8,411 additions and 6,243 deletions.
69 changes: 47 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: CI

env:
VOLTA_FEATURE_PNPM: 1

on:
push:
branches:
Expand All @@ -18,15 +21,22 @@ jobs:
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 7
- name: Install Node
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- name: Install volta
uses: volta-cli/action@v4
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path -s)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v4
id: cache
with:
node-version: 14.x
cache: pnpm
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Lint
Expand All @@ -40,14 +50,22 @@ jobs:
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 7
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- name: Install volta
uses: volta-cli/action@v4
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path -s)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v4
id: cache
with:
node-version: 14.x
cache: pnpm
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Dependencies
run: pnpm install --no-lockfile
- name: Run Tests
Expand Down Expand Up @@ -75,14 +93,21 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 7
- name: Install Node
uses: actions/setup-node@v3
- name: Install volta
uses: volta-cli/action@v4
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path -s)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v4
id: cache
with:
node-version: 14.x
cache: pnpm
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Run Tests
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
/package.json.ember-try
/package-lock.json.ember-try
/yarn.lock.ember-try
/pnpm-lock.yaml.ember-try

# broccoli-debug
/DEBUG/
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
/.watchmanconfig
/CONTRIBUTING.md
/ember-cli-build.js
/pnpm-lock.yaml
/testem.js
/tests/
/yarn-error.log
Expand All @@ -33,4 +34,5 @@
/npm-shrinkwrap.json.ember-try
/package.json.ember-try
/package-lock.json.ember-try
/pnpm-lock.yaml.ember-try
/yarn.lock.ember-try
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,9 @@
"release": true,
"tokenRef": "GITHUB_AUTH"
}
},
"volta": {
"node": "20.14.0",
"pnpm": "9.6.0"
}
}
Loading

0 comments on commit 3f6c404

Please sign in to comment.