Skip to content

Commit

Permalink
chore: switch to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
anehx committed Dec 8, 2023
1 parent 835357a commit 3c1fd5e
Show file tree
Hide file tree
Showing 12 changed files with 17,612 additions and 19,125 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: CI

on:
push:
branches:
- main
- master
pull_request: {}

concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
test:
name: "Tests"
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v4
- uses: wyvox/action-setup-pnpm@v3
with:
node-version: 18
- name: Lint
run: pnpm lint
- name: Run Tests
run: pnpm ember try:each --skip-cleanup

floating:
name: "Floating Dependencies"
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v4
- uses: wyvox/action-setup-pnpm@v3
with:
node-version: 18
args: "--no-lockfile"
- name: Run Tests
run: pnpm ember try:each --skip-cleanup

try-scenarios:
name: ${{ matrix.try-scenario }}
runs-on: ubuntu-latest
needs: "test"
timeout-minutes: 10

strategy:
fail-fast: false
matrix:
try-scenario:
- ember-lts-4.8
- ember-lts-4.4
- ember-release
- ember-beta
- ember-canary
- embroider-safe
- embroider-optimized

steps:
- uses: actions/checkout@v4
- uses: wyvox/action-setup-pnpm@v3
with:
node-version: 18
- name: Run Tests
run: ./node_modules/.bin/ember try:each --skip-cleanup
env:
EMBER_SCENARIO: ${{ matrix.try-scenario }}
8 changes: 2 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: wyvox/action-setup-pnpm@v3
with:
node-version: 18
cache: "yarn"

- name: Install Dependencies
run: yarn install

- name: Deploy to Github Pages
run: yarn ember deploy production
run: pnpm ember deploy production
env:
CI: true
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ jobs:
ref: ${{ github.event.ref }}
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- uses: actions/setup-node@v4
- uses: wyvox/action-setup-pnpm@v3
with:
node-version: 18
cache: "yarn"

- name: Install dependencies
run: yarn install

- name: Configure git
run: |
Expand All @@ -29,4 +25,4 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn semantic-release
run: pnpm semantic-release
108 changes: 0 additions & 108 deletions .github/workflows/test.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# skip in CI
[ -n "$CI" ] && exit 0

yarn commitlint --edit $1
pnpm commitlint --edit $1
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
[ -n "$CI" ] && exit 0

# lint only staged files
yarn lint-staged
pnpm lint-staged
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

- `git clone <repository-url>`
- `cd ember-validated-form`
- `yarn install`
- `pnpm install`

## Linting

- `yarn lint`
- `yarn lint:fix`
- `pnpm lint`
- `pnpm lint:fix`

## Running tests

Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"@ember/test-helpers": "2.9.3",
"@embroider/test-setup": "3.0.3",
"@fortawesome/ember-fontawesome": "2.0.0",
"@fortawesome/fontawesome-svg-core": "6.4.0",
"@fortawesome/free-solid-svg-icons": "6.5.1",
"broccoli-asset-rev": "3.0.0",
"concurrently": "8.0.1",
Expand Down Expand Up @@ -94,6 +95,7 @@
"prettier": "2.8.8",
"qunit": "2.20.0",
"qunit-dom": "3.0.0",
"semantic-release": "22.0.10",
"stylelint": "15.10.3",
"stylelint-config-standard": "33.0.0",
"stylelint-prettier": "3.0.0",
Expand Down
Loading

0 comments on commit 3c1fd5e

Please sign in to comment.