Skip to content

Commit 429246f

Browse files
authored
chore: Use Github actions for CI. (#26)
1 parent f2c844c commit 429246f

File tree

6 files changed

+3850
-68
lines changed

6 files changed

+3850
-68
lines changed

.circleci/config.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths-ignore:
7+
- '**.md' #Do not need to run CI for markdown changes.
8+
pull_request:
9+
branches: [main]
10+
paths-ignore:
11+
- '**.md'
12+
13+
jobs:
14+
build-test:
15+
strategy:
16+
matrix:
17+
variations: [
18+
{os: ubuntu-latest, node: latest},
19+
{os: ubuntu-latest, node: 14},
20+
{os: windows-latest, node: latest}
21+
]
22+
23+
runs-on: ${{ matrix.variations.os }}
24+
25+
steps:
26+
- uses: actions/checkout@v3
27+
- uses: actions/setup-node@v3
28+
with:
29+
node-version: ${{ matrix.variations.node }}
30+
registry-url: 'https://registry.npmjs.org'
31+
- name: Install
32+
run: yarn
33+
- name: Build
34+
run: yarn run build
35+
- name: Test
36+
run: yarn test
37+
env:
38+
JEST_JUNIT_OUTPUT_FILE: "reports/junit/js-test-results.xml"
39+
- name: Lint
40+
run: yarn run lint
41+
- name: Test Report
42+
uses: dorny/test-reporter@v1
43+
if: always()
44+
with:
45+
name: Jest Tests ${{ matrix.variations.os }}-${{ matrix.variations.node }}
46+
path: "reports/junit/js-test-results.xml"
47+
reporter: jest-junit

tsconfig.eslint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"extends": "./tsconfig.json",
3-
"include": ["/**/*.ts"],
3+
"include": ["**/*.ts"],
44
"exclude": ["node_modules"]
55
}

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"include": ["./src/**/*"],
2+
"include": ["src/**/*"],
33
"compilerOptions": {
44
"module": "commonjs",
55
"esModuleInterop": true,
66
"target": "es6",
77
"moduleResolution": "node",
88
"sourceMap": true,
99
"outDir": "dist",
10-
"rootDir": "./src",
10+
"rootDir": "src",
1111
"declaration": true,
1212
"declarationMap": true // enables importers to jump to source
1313
},

0 commit comments

Comments
 (0)