Skip to content

Commit

Permalink
ci: add lint, build and test checks (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
hf authored May 12, 2024
1 parent 629b095 commit 8d7e273
Show file tree
Hide file tree
Showing 7 changed files with 1,925 additions and 120 deletions.
29 changes: 29 additions & 0 deletions .github/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI
on:
pull_request:
push:
branches:
- main

jobs:
lint-build-test:
name: Lint, build and test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4

- run: |
npm ci
- run: |
npm lint
- run: |
npm build
- run: |
npm test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/dist
/coverage
node_modules

9 changes: 9 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// @ts-check

import eslint from "@eslint/js";
import tseslint from "typescript-eslint";

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
);
Loading

0 comments on commit 8d7e273

Please sign in to comment.