Skip to content

Commit

Permalink
Merge pull request #42 from deco-cx/feat/types
Browse files Browse the repository at this point in the history
feat: autogen types for vnda | wake | shopify
  • Loading branch information
tlgimenes authored Sep 12, 2023
2 parents d17139c + 4989da7 commit 9c88490
Show file tree
Hide file tree
Showing 378 changed files with 317,929 additions and 66,390 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: ci

on:
push:
branches:
- main
tags:
- v*
pull_request:
branches:
- main
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
name: "Bundle & Check Apps"
steps:
- uses: actions/checkout@v3
- name: cache deno installation and deno.land dependencies
uses: actions/cache@v2
with:
key: ${{ runner.os }}-deno-${{ hashFiles('**/*') }}
restore-keys: ${{ runner.os }}-deno-
path: |
/home/runner/.deno
/home/runner/.cache/deno/deps/https/deno.land
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Bundle Apps
run: deno run -A --lock=deno.lock --lock-write --reload scripts/start.ts

- name: Check
run: deno task check

- name: Check if there are changes on ${{ matrix.os }}
id: changes
shell: bash
run: |
git status --porcelain
if [[ $(git status --porcelain | wc -c) -eq 0 ]]; then
echo "uncommitted changes detected"
exit 1
fi
- name: Test
continue-on-error: true
run: deno test --lock=deno.lock --lock-write -A .

- name: Benchmark
continue-on-error: true
run: deno bench --lock=deno.lock --lock-write -A .
7 changes: 5 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"lock": false,
"tasks": {
"check": "deno fmt && deno lint",
"check": "deno fmt && deno lint && deno check **/mod.ts",
"release": "deno eval 'import \"deco/scripts/release.ts\"'",
"start": "deno run -A ./scripts/start.ts",
"link": "deno eval 'import \"deco/scripts/apps/link.ts\"'",
Expand All @@ -14,7 +14,10 @@
"githooks": {
"pre-commit": "check"
},
"exclude": ["static", "README.md"],
"exclude": [
"static",
"README.md"
],
"importMap": "./import_map.json",
"compilerOptions": {
"jsx": "react-jsx",
Expand Down
Loading

0 comments on commit 9c88490

Please sign in to comment.