Skip to content

Commit

Permalink
Create after-checkout-prep (#1639)
Browse files Browse the repository at this point in the history
* Create checkout-and-prep

* Readd checkout

* More cleanup
  • Loading branch information
wwahammy authored Aug 28, 2023
1 parent 988f73d commit 09cd636
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 42 deletions.
32 changes: 32 additions & 0 deletions .github/actions/after-checkout-prep/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'After Checkout Prep'
description: 'prep'
inputs:
node:
description: "Which node version?"
install-node:
description: "Install node?"
ruby:
description: "Which node version?"
install-ruby:
description: "Install ruby?"
runs:
using: "composite"
steps:
- name: Setup PostgreSQL with PostgreSQL extensions and unprivileged user
uses: Daniel-Marynicz/[email protected]
with:
postgres_image_tag: 12-alpine
postgres_user: houdini_user
postgres_password: password
- name: "Install NPM packages"
uses: "./.github/actions/install-packages"
if: ${{ inputs.install-node }}
with:
node: ${{ inputs.node }}
- name: "Install Ruby packages"
uses: "./.github/actions/install-packages"
if: ${{ inputs.install-ruby }}
with:
ruby: ${{ inputs.ruby }}


38 changes: 10 additions & 28 deletions .github/workflows/js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,12 @@ jobs:
node: [14.19.1]
steps:
- uses: actions/checkout@v3
- name: Setup PostgreSQL with PostgreSQL extensions and unprivileged user
uses: Daniel-Marynicz/[email protected]
- uses: ./.github/actions/after-checkout-prep
with:
postgres_image_tag: 12-alpine
postgres_user: houdini_user
postgres_password: password
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
- run: yarn install --frozen-lockfile
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.ruby }}
bundler-cache: true
install-node: true
node: ${{ matrix.node }}
install-ruby: true
ruby: ${{ env.ruby }}
- run: bin/setup ci
- name: Generate JS routes
run: bin/rails js:routes:typescript
Expand All @@ -63,21 +54,12 @@ jobs:
node: [14.19.1]
steps:
- uses: actions/checkout@v3
- name: Setup PostgreSQL with PostgreSQL extensions and unprivileged user
uses: Daniel-Marynicz/[email protected]
- uses: ./.github/actions/after-checkout-prep
with:
postgres_image_tag: 12-alpine
postgres_user: houdini_user
postgres_password: password
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
- run: yarn install --frozen-lockfile
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.ruby }}
bundler-cache: true
install-node: true
node: ${{ matrix.node }}
install-ruby: true
ruby: ${{ env.ruby }}
- name: run setup
run: bin/setup ci
- name: Generate JS routes
Expand Down
19 changes: 5 additions & 14 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,12 @@ jobs:
ruby: [2.7.7]
steps:
- uses: actions/checkout@v3
- name: Setup PostgreSQL with PostgreSQL extensions and unprivileged user
uses: Daniel-Marynicz/[email protected]
- uses: ./.github/actions/after-checkout-prep
with:
postgres_image_tag: 12-alpine
postgres_user: houdini_user
postgres_password: password
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
- run: yarn install --frozen-lockfile
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
install-node: true
node: ${{ matrix.node }}
install-ruby: true
ruby: ${{ matrix.ruby }}
- name: install bess dependencies
run: |
cd gems/bess
Expand Down

0 comments on commit 09cd636

Please sign in to comment.