Skip to content

Commit

Permalink
(Fix) Move .github to root
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmwang committed Apr 5, 2023
1 parent 18a17a7 commit 7ddbd04
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/gen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name:
Codegen Test

on:
push:
pull_request:

jobs:
Codegen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: install node v12
uses: actions/setup-node@v1
with:
node-version: 12

- name: npm install
run: npm install

- name: gen
run: npm run generate

- name: test diff
uses: tj-actions/verify-changed-files@v14
id: test-diff
with:
files: |
**/generated-types/*.ts
- if: steps.test-diff.outputs.files_changed == 'true'
run: |
echo "Run 'npm run generate' to fix!"
exit 1
20 changes: 20 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name:
Linting

on:
push:
pull_request:

jobs:
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: install node v12
uses: actions/setup-node@v1
with:
node-version: 12
- name: npm install
run: npm install
- name: lint
run: npm run lint

0 comments on commit 7ddbd04

Please sign in to comment.