Skip to content

Commit

Permalink
ci: update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sukaato committed Aug 28, 2024
1 parent 0a674b6 commit cbbde8d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 18 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/actions/audit/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@ runs:
with:
node-version: ${{ inputs.node-version }}

- run: npx audit-ci@latest --config ./audit-ci.json
working-directory: ./packages/${{ inputs.package }}
- run: npx -w @poppy-ui/${{ inputs.package }} audit-ci@latest --config ./audit-ci.json
shell: bash
10 changes: 4 additions & 6 deletions .github/workflows/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,20 @@ runs:
node-version: ${{ inputs.node-version }}

- name: Install Package
run: npm install -w @poppy-ui/${{ inputs.package }}
run: npm -w @poppy-ui/${{ inputs.package }} install
shell: bash

- name: Install Core
if: inputs.package != 'core'
run: npm install -w @poppy-ui/${{ inputs.package }} @poppy-ui/core @poppy-ui/docs
run: npm -w @poppy-ui/${{ inputs.package }} install @poppy-ui/core @poppy-ui/docs
shell: bash

- name: Build
run: npm run build --if-present
working-directory: ./packages/${{ inputs.package }}
run: npm -w @poppy-ui/${{ inputs.package }} build --if-present
shell: bash

- name: Pack
run: npm pack
working-directory: ./packages/${{ inputs.package }}
run: npm -w @poppy-ui/${{ inputs.package }} pack
shell: bash

- name: Rename tarball
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/actions/quality/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,28 @@ runs:
node-version: ${{ inputs.node-version }}

- name: Install Package
run: npm install -w @poppy-ui/${{ inputs.package }}
run: npm -w @poppy-ui/${{ inputs.package }} install
shell: bash

- name: Install Core
if: inputs.package != 'core'
run: npm install -w @poppy-ui/${{ inputs.package }} @poppy-ui/core @poppy-ui/docs
run: npm -w @poppy-ui/${{ inputs.package }} install @poppy-ui/core @poppy-ui/docs
shell: bash

- name: Format
run: npx @biomejs/biome format --reporter github
working-directory: ./packages/${{ inputs.package }}
run: npx -w @poppy-ui/${{ inputs.package }} @biomejs/biome format --reporter github
shell: bash

- name: Lint
run: npx @biomejs/biome lint --reporter github
working-directory: ./packages/${{ inputs.package }}
run: npx -w @poppy-ui/${{ inputs.package }} @biomejs/biome lint --reporter github
shell: bash

- name: Test
run: npm run test:spec -- --passWithNoTests --coverage
working-directory: ./packages/${{ inputs.package }}
run: npm -w @poppy-ui/${{ inputs.package }} run test:spec --if-present -- --passWithNoTests --coverage
shell: bash

- name: Test e2e
run: npm run test:e2e -- --pass-with-no-tests --reporter github
working-directory: ./packages/${{ inputs.package }}
run: npm -w @poppy-ui/${{ inputs.package }} run test:e2e --if-present -- --pass-with-no-tests --reporter github
shell: bash

- name: Scan
Expand Down

0 comments on commit cbbde8d

Please sign in to comment.