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 3654e8d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 22 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
13 changes: 5 additions & 8 deletions .github/workflows/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,29 @@ 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 }} run 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
run: |
PKG=$(ls poppy-ui-${{ inputs.package }}-*.tgz)
mv $PKG poppy-ui-${{ inputs.package }}.tgz
working-directory: ./packages/${{ inputs.package }}
shell: bash

- uses: actions/upload-artifact@v4
with:
name: ${{ inputs.package }}-${{ inputs.node-version }}
path: ./packages/${{ inputs.package }}/poppy-ui-${{ inputs.package }}-${{ inputs.node-version }}.tgz
path: ./poppy-ui-${{ inputs.package }}-${{ inputs.node-version }}.tgz
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
3 changes: 1 addition & 2 deletions .github/workflows/build-vue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Install core
working-directory: ./packages/vue
run: npm i ../core/poppy-ui-core.tgz
run: npm -w @poppy-ui/vue install poppy-ui-core.tgz

- name: Build Vue
uses: ./.github/workflows/actions/build
Expand Down

0 comments on commit 3654e8d

Please sign in to comment.