Skip to content
Merged
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
36 changes: 14 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,51 +11,43 @@ permissions:

jobs:
ESLint:
name: ESLint
name: Lint
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642195f2b846b8bbe245a93 # v4
- name: Setup Deno
uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2
with:
node-version: 22
- name: Install Node.js dependencies
run: npm ci
- name: Run ESLint
run: npm run lint:ci
deno-version: v1.x
- name: Run Deno lint
run: deno task lint

checkJs:
name: Type Check
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642195f2b846b8bbe245a93 # v4
- name: Setup Deno
uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2
with:
node-version: 22
- name: Install Node.js dependencies
run: npm ci
- name: Register Problem Matcher for colored tsc output
run: echo "##[add-matcher].github/problemMatchers/tsc-pretty.json"
deno-version: v1.x
- name: Run type checking
run: npm run checkJs
run: deno task check

test:
name: Unittest
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642195f2b846b8bbe245a93 # v4
- name: Setup Deno
uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2
with:
node-version: 22
- name: Install Node.js dependencies
run: npm ci
deno-version: v1.x
- name: Run tests
run: npm run test:ci
run: deno task test
- name: Upload test results
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
if: success() || failure()
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/rescript-deno-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ jobs:
- name: ReScript build
run: |
if [ -f "rescript.json" ] || [ -f "bsconfig.json" ]; then
npm install
npx rescript
deno run -A --node-modules-dir=auto npm:rescript
fi

- name: Type check
Expand Down
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,10 @@ deps/
.cache/
build/
dist/

# npm/yarn/pnpm/bun lockfiles (Deno-only repo)
package-lock.json
yarn.lock
pnpm-lock.yaml
bun.lockb
.npmrc
Loading
Loading