Skip to content

Commit

Permalink
TS demos (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechBarczynski authored May 10, 2024
1 parent 1e0acd3 commit 180f4f0
Show file tree
Hide file tree
Showing 27 changed files with 6,293 additions and 180 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/demos_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: demos lint

on:
push:
branches: [master]
paths:
- "demos/**"
pull_request:
types: [opened, synchronize]
paths:
- "demos/**"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

jobs:
check:
runs-on: ubuntu-latest

steps:
- name: 📥 Checkout repo
uses: actions/checkout@v2
with:
submodules: "true"

- name: 🛠 Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "20"

- name: 📦 Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-
- name: 💾 Install project dependencies
working-directory: ./demos
run: npm install

- name: 📖 Lint code
working-directory: ./demos
run: npm run lint
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Schemas generated for TypeScript demos
/schemas/api_types.schema.json

# Generated by Cargo
# will have compiled files and executables
debug/
Expand Down
Loading

0 comments on commit 180f4f0

Please sign in to comment.