Skip to content

Commit

Permalink
github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cheshirecode authored Jun 19, 2024
1 parent b9b06f2 commit 1bf9212
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 17 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,32 +56,26 @@ jobs:
run: node common/scripts/install-run-rush.js test --to ${{ inputs.namespace }}/${{ inputs.package-name }}
- name: test:lcov ${{ inputs.package-name }}
if: inputs.lcov != null
working-directory: ${{ inputs.package-path }}/${{ inputs.package-name }}
working-directory: ${{ inputs.package-path }}/${{ github.jobs[github.job].name }}
run: |
node $GITHUB_WORKSPACE/common/scripts/install-run-rushx.js coverage
- name: Coveralls GitHub Action
if: inputs.lcov != null
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.github_token }}
file: ${{ github.workspace }}/${{ inputs.package-path }}/${{ inputs.package-name }}/coverage/lcov.info
file: ${{ github.workspace }}/${{ inputs.package-path }}/${{ github.jobs[github.job].name }}/coverage/lcov.info
format: lcov
flag-name: ${{ inputs.package-name }}
parallel: true
- name: build ${{ inputs.package-name }}
if: ${{ inputs.namespace }} == null && inputs.package-name != null && inputs.build
working-directory: ${{ inputs.package-path }}/${{ inputs.package-name }}
working-directory: ${{ inputs.package-path }}/${{ github.jobs[github.job].name }}
run: |
node $GITHUB_WORKSPACE/common/scripts/install-run-rush.js build --verbose --to ${{ inputs.namespace }}/${{ inputs.package-name }}
- name: build ${{ inputs.namespace }}/${{ inputs.package-name }}
if: ${{ inputs.namespace }} != null && inputs.package-name != null && inputs.build
working-directory: ${{ inputs.package-path }}/${{ inputs.package-name }}
working-directory: ${{ inputs.package-path }}/${{ github.jobs[github.job].name }}
run: |
node $GITHUB_WORKSPACE/common/scripts/install-run-rush.js build --verbose --to ${{ inputs.namespace }}/${{ inputs.package-name }}
# - name: build-storybook ${{ inputs.package-name }}
# if:
# inputs.package-name != null && inputs.storybook
# working-directory: ${{ inputs.package-path }}/${{ inputs.package-name }}
# run: |
# node $GITHUB_WORKSPACE/common/scripts/install-run-rushx.js build-storybook
continue-on-error: true
9 changes: 4 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
needs: [base]
uses: ./.github/workflows/base.yml
with:
package-name: app-1
package-name: "@rush-monorepo-boilerplate/app-1"
project-folder:
storybook: true
lcov: true
eslint-config-react:
needs: [base]
uses: ./.github/workflows/base.yml
with:
namespace: '@fieryeagle'
package-name: eslint-config-react
package-name: "@fieryeagle/eslint-config-react"
lcov: true
measure-hook:
needs: [base]
Expand All @@ -36,8 +36,7 @@ jobs:
needs: [base]
uses: ./.github/workflows/base.yml
with:
namespace: '@fieryeagle'
package-name: pkce
package-name: '@fieryeagle/pkce'
lcov: true
finish:
needs: [app-1,eslint-config-react,measure-hook,pkce]
Expand Down
2 changes: 1 addition & 1 deletion packages/pkce/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@fieryeagle/pkce-poc",
"name": "@fieryeagle/pkce",
"version": "0.0.0",
"type": "module",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion rush.json
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@
"shouldPublish": true
},
{
"packageName": "@fieryeagle/pkce-poc",
"packageName": "@fieryeagle/pkce",
"projectFolder": "packages/pkce",
"reviewCategory": "tools",
"tags": [
Expand Down

0 comments on commit 1bf9212

Please sign in to comment.