mirror of
https://github.com/cupcakearmy/formhero.git
synced 2024-12-22 08:06:24 +00:00
composite
This commit is contained in:
parent
26327ab91e
commit
d71416c9da
22
.github/action/build/action.yaml
vendored
Normal file
22
.github/action/build/action.yaml
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
name: "Build"
|
||||
description: "Build the project."
|
||||
|
||||
inputs:
|
||||
|
||||
runs:
|
||||
using: "composite" # This is the magic
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 7
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: "pnpm"
|
||||
registry-url: https://registry.npmjs.org/
|
||||
|
||||
- run: pnpm install --frozen-lockfile
|
||||
shell: bash
|
||||
- run: pnpm run build
|
||||
shell: bash
|
13
.github/workflows/test.yaml
vendored
13
.github/workflows/test.yaml
vendored
@ -13,15 +13,6 @@ jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 7
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: "pnpm"
|
||||
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: pnpm run compile
|
||||
- name: Build
|
||||
uses: ./.github/actions/build
|
||||
- run: pnpm run test
|
||||
|
Loading…
Reference in New Issue
Block a user