Skip to content

Commit

Permalink
Move javascript PR stuff into PR
Browse files Browse the repository at this point in the history
  • Loading branch information
wwahammy committed Aug 28, 2023
1 parent ad308aa commit f462813
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 84 deletions.
62 changes: 0 additions & 62 deletions .github/workflows/js.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/placeholders.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/single-matrix-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,37 @@ jobs:
- name: run assets:precompile
run: bin/rails assets:precompile

webpack:
needs: package-download
if: ${{ contains(needs.changes.outputs.filters, 'build-js') }}
runs-on: ${{ inputs.os }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/after-checkout-prep
with:
node: ${{ inputs.node }}
ruby: ${{ inputs.ruby }}
- name: run setup
run: bin/setup ci
- name: Generate JS routes
run: bin/rails js:routes:typescript
- name: Webpack compile everything
run: yarn webpack
- name: Verify storybook compiles
run: yarn build-storybook

jest:
needs: package-download
if: ${{ contains(needs.changes.outputs.filters, 'build-js') }}
runs-on: ${{ inputs.os }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/after-checkout-prep
with:
node: ${{ inputs.node }}
ruby: ${{ inputs.ruby }}
- run: bin/setup ci
- name: Generate JS routes
run: bin/rails js:routes:typescript
- name: run test:js
run: yarn test:js

0 comments on commit f462813

Please sign in to comment.