Skip to content

Commit

Permalink
chore: Add CI to this repo (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavoguichard authored Aug 18, 2023
1 parent 26331e7 commit 3c71406
Show file tree
Hide file tree
Showing 4 changed files with 410 additions and 14 deletions.
23 changes: 23 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"env": {
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/consistent-type-imports": [
"warn",
{
"prefer": "type-imports",
"disallowTypeAnnotations": true
}
]
}
}
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
on:
push:
branches: [main]
pull_request:

jobs:
test:
name: Run tests
runs-on: ubuntu-latest

steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]

- name: ⬇️ Checkout repo
uses: actions/checkout@v3

- name: 🪡 Install Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: 📦 Install Dependencies
run: npm install

- name: ⚡ Run tests
run: |
npm run test
- name: 🚦 Lint
run: |
npm run lint
- name: 🧙🏿‍♂️ TSC
run: |
npm run tsc
- name: 📥 Generate npm package
run: |
npm run build
Loading

0 comments on commit 3c71406

Please sign in to comment.