Skip to content

Merge pull request #27 from kamdz/dependabot/npm_and_yarn/typescript-… #62

Merge pull request #27 from kamdz/dependabot/npm_and_yarn/typescript-…

Merge pull request #27 from kamdz/dependabot/npm_and_yarn/typescript-… #62

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
code-check:
name: Lint, Format, Typings
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'yarn'
- name: Install dependencies
run: yarn
- name: Lint code
run: yarn lint
- name: Format code
run: yarn format
- name: Type check
run: yarn type-check
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'yarn'
- name: Install dependencies
run: yarn
- name: Run unit tests
run: yarn test