Skip to content

chore(deps-dev): remove jest in favor of Node test runner #139

chore(deps-dev): remove jest in favor of Node test runner

chore(deps-dev): remove jest in favor of Node test runner #139

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Testing Dex
on:
push:
branches:
- main
pull_request:
# No GITHUB_TOKEN permissions, as we only use it to increase API limit.
permissions: {}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
persist-credentials: false
- name: Setup Node.js environment
uses: actions/setup-node@v6
with:
node-version-file: ".nvmrc"
cache: npm
cache-dependency-path: |
package-lock.json
libs/**/*.js
- name: Install dependencies
run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Lint prettier
run: npm run prettier-check
- name: Lint ESLint
run: npm run eslint
- name: Check TypeScript
run: npm run check:tsc
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
persist-credentials: false
- name: Setup Node.js environment
uses: actions/setup-node@v6
with:
node-version-file: ".nvmrc"
cache: npm
- name: Install all dex dependencies
run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Unit testing libs
run: npm run test:libs