Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 2 additions & 29 deletions .github/workflows/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,6 @@ on:
- cron: '0 17 * * *'

jobs:
run_tests:
name: Run tests
runs-on: ubuntu-latest
if: github.event_name == 'push' || (github.event_name == 'schedule' && github.ref == 'refs/heads/main')

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc

- name: Cache node_modules
uses: actions/cache@v5
with:
path: types/node_modules
key: types-node-modules-${{ runner.os }}-${{ hashFiles('types/package-lock.json', '.nvmrc') }}

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test
working-directory: types

typecheck:
name: Check types
runs-on: ubuntu-latest
Expand All @@ -52,8 +25,8 @@ jobs:
- name: Cache node_modules
uses: actions/cache@v5
with:
path: types/node_modules
key: types-node-modules-${{ runner.os }}-${{ hashFiles('types/package-lock.json', '.nvmrc') }}
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json', '.nvmrc') }}

- name: Install dependencies
run: npm ci
Expand Down
69 changes: 69 additions & 0 deletions .github/workflows/werkit-codegen-js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: werkit-codegen-js

on:
push:
branches:
- '**'
schedule:
- cron: '0 17 * * *'

jobs:
test:
name: Run tests
runs-on: ubuntu-latest
if: github.event_name == 'push' || (github.event_name == 'schedule' && github.ref == 'refs/heads/main')

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc

- name: Cache node_modules
uses: actions/cache@v5
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json', '.nvmrc') }}

- name: Install dependencies
run: npm ci

- name: Build types
run: npm run build -w types

- name: Run tests
run: npm test
working-directory: werkit-codegen-js

typecheck:
name: Check types
runs-on: ubuntu-latest
if: github.event_name == 'push' || (github.event_name == 'schedule' && github.ref == 'refs/heads/main')

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc

- name: Cache node_modules
uses: actions/cache@v5
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json', '.nvmrc') }}

- name: Install dependencies
run: npm ci

- name: Build types
run: npm run build -w types

- name: Check types
run: npm run typecheck
working-directory: werkit-codegen-js
9 changes: 3 additions & 6 deletions .github/workflows/werkit-lambda-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ jobs:
runs-on: ubuntu-latest
if: github.event_name == 'push' || (github.event_name == 'schedule' && github.ref == 'refs/heads/main')

defaults:
run:
working-directory: werkit-lambda-js

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -29,11 +25,12 @@ jobs:
- name: Cache node_modules
uses: actions/cache@v5
with:
path: werkit-lambda-js/node_modules
key: lambda-js-node-modules-${{ runner.os }}-${{ hashFiles('werkit-lambda-js/package-lock.json', '.nvmrc') }}
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json', '.nvmrc') }}

- name: Install dependencies
run: npm ci

- name: Check types
run: npm run typecheck
working-directory: werkit-lambda-js
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,4 @@ python-worker.zip
/node_modules
/types/node_modules
/werkit-lambda-js/node_modules
/werkit-codegen-js/node_modules
Loading
Loading