Skip to content

Commit

Permalink
chore: add packages to npm workspaces, use single package-lock.json (#…
Browse files Browse the repository at this point in the history
…127)

* config: set up workspace, and install packages

* workflows: reconfigure dependabot for monorepo

* workflows: add `install-deps` job to lint action

* Revert "workflows: add `install-deps` job to lint action"

This reverts commit de74d2e.

* workflows: reference global package.json

* workflows: do not install cypress in cypress-io/github-action
  • Loading branch information
tamssokari authored Nov 14, 2023
1 parent 8ca6e39 commit 97b5c59
Show file tree
Hide file tree
Showing 10 changed files with 10,583 additions and 21,342 deletions.
6 changes: 1 addition & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/packages/components" # Location of package manifests
schedule:
interval: "weekly"
- package-ecosystem: "npm" # See documentation for possible values
directory: "/packages/embed" # Location of package manifests
directory: "/" # Location of package manifest
schedule:
interval: "weekly"
8 changes: 0 additions & 8 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ jobs:
uses: actions/checkout@v4
- name: set node version
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: ./packages/components/package-lock.json
- name: install dependencies
run: npm ci
- name: build application
Expand Down Expand Up @@ -60,10 +56,6 @@ jobs:
uses: actions/checkout@v4
- name: set node version
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: ./packages/embed/package-lock.json
- name: install dependencies
run: npm ci
- name: build application
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ jobs:
uses: actions/checkout@v4
- name: set node version
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "npm"
cache-dependency-path: ./packages/embed/package-lock.json
- name: install dependencies
run: npm ci
- name: build site
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ jobs:
uses: actions/checkout@v4
- name: set node version
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "npm"
cache-dependency-path: ./packages/embed/package-lock.json
- name: install dependencies
run: npm ci
- name: build site
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ jobs:
uses: actions/checkout@v4
- name: set node version
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: ./packages/components/package-lock.json
- name: install dependencies
run: npm ci
- name: lint
Expand All @@ -34,10 +30,6 @@ jobs:
uses: actions/checkout@v4
- name: set node version
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: ./packages/embed/package-lock.json
- name: install dependencies
run: npm ci
- name: lint html
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,14 @@ jobs:
uses: actions/checkout@v4
- name: set node version
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: ./packages/components/package-lock.json
- name: install dependencies
run: npm ci
- name: build application
run: npm run build
- name: run tests
uses: cypress-io/github-action@v6
with:
install: false
start: npm start
working-directory: ./packages/components
wait-on: 'http://localhost:8000'
Expand All @@ -36,15 +33,12 @@ jobs:
uses: actions/checkout@v4
- name: set node version
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: ./packages/embed/package-lock.json
- name: install dependencies
run: npm ci
- name: run tests
uses: cypress-io/github-action@v6
with:
install: false
start: npm start
working-directory: ./packages/embed
wait-on: 'http://localhost:8000'
Expand Down
Loading

0 comments on commit 97b5c59

Please sign in to comment.