Skip to content

Commit

Permalink
incorporate w3up-client into monorepo workflows (e.g. release.yml, ty…
Browse files Browse the repository at this point in the history
…pedoc
  • Loading branch information
gobengo committed Mar 27, 2023
1 parent 9b7a669 commit 2f8ae22
Show file tree
Hide file tree
Showing 8 changed files with 249 additions and 134 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ jobs:
contains(fromJson(needs.release.outputs.paths_released), 'packages/access-client') ||
contains(fromJson(needs.release.outputs.paths_released), 'packages/capabilities') ||
contains(fromJson(needs.release.outputs.paths_released), 'packages/upload-client') ||
contains(fromJson(needs.release.outputs.paths_released), 'packages/upload-api')
contains(fromJson(needs.release.outputs.paths_released), 'packages/upload-api') ||
contains(fromJson(needs.release.outputs.paths_released), 'packages/w3up-client')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
19 changes: 18 additions & 1 deletion .github/workflows/w3up-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,21 @@ on:
- 'pnpm-lock.yaml'
jobs:
test:
uses: ./packages/w3up-client/.github/workflows/test.yml
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install
uses: pnpm/action-setup@v2.2.3
with:
version: 7
- name: Setup
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
cache: 'pnpm'
- run: pnpm --filter '@web3-storage/w3up-client' install
- run: pnpm --filter '@web3-storage/w3up-client' build
- uses: ./packages/w3up-client/.github/workflows/test.yml
13 changes: 3 additions & 10 deletions packages/w3up-client/.github/actions/test/action.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
name: Test
description: 'Setup and test'

description: 'test'
# install npm dependencies (e.g. via `npm` or monorepo `pnpm`) before invoking this action to run tests
runs:
using: "composite"
steps:
- uses: actions/setup-node@v3
with:
registry-url: 'https://registry.npmjs.org'
node-version: 18
cache: 'npm'
- run: npm ci
shell: bash
- run: npm run lint
shell: bash
- run: npm test
shell: bash
shell: bash
31 changes: 0 additions & 31 deletions packages/w3up-client/.github/workflows/deploy-docs.yml

This file was deleted.

22 changes: 0 additions & 22 deletions packages/w3up-client/.github/workflows/release.yml

This file was deleted.

17 changes: 0 additions & 17 deletions packages/w3up-client/.github/workflows/test.yml

This file was deleted.

Loading

0 comments on commit 2f8ae22

Please sign in to comment.