Skip to content

Commit

Permalink
feat: add generate workflow
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <[email protected]>
  • Loading branch information
gfanton committed Apr 25, 2024
1 parent 9cb84d0 commit 9c2d93a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/generate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
workflow_call:
workflow_dispatch:

jobs:
generate:
name: Check for generate changes
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'

- run: yarn install --frozen-lockfile

- name: Run Generate
run: yarn generate

- name: Check for any changes
id: git-check
run: |
git diff-index HEAD && exit 0
echo "change detected after generate"
git diff HEAD
exit 1
shell: bash
5 changes: 4 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ on:
jobs:
test:
name: Gno Test
uses: ./.github/workflows/test.yaml
uses: ./.github/workflows/test.yaml
generate:
name: Generate
uses: ./.github/workflows/generate.yaml

0 comments on commit 9c2d93a

Please sign in to comment.