Skip to content

Commit 6e1080a

Browse files
authored
Merge pull request #152 from alxndrsn/github-actions
ci: move to github actions
2 parents 37606f8 + 47def6b commit 6e1080a

File tree

5 files changed

+5505
-9
lines changed

5 files changed

+5505
-9
lines changed

.github/workflows/ci.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
lint:
10+
timeout-minutes: 2
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
persist-credentials: false
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 18
19+
cache: yarn
20+
- run: yarn install # --frozen-lockfile TODO get this option working
21+
- run: yarn lint
22+
test-js:
23+
timeout-minutes: 2
24+
runs-on: ubuntu-latest
25+
needs: lint
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
node:
30+
- '12'
31+
- '14'
32+
- '16'
33+
- '18'
34+
- '20'
35+
name: test js - node v${{ matrix.node }}
36+
steps:
37+
- uses: actions/checkout@v4
38+
with:
39+
persist-credentials: false
40+
- uses: actions/setup-node@v4
41+
with:
42+
node-version: ${{ matrix.node }}
43+
cache: yarn
44+
- run: yarn install # --frozen-lockfile TODO get this option working
45+
- run: yarn test
46+
test-ts:
47+
timeout-minutes: 2
48+
runs-on: ubuntu-latest
49+
needs: lint
50+
strategy:
51+
fail-fast: false
52+
matrix:
53+
node:
54+
- '12'
55+
- '14'
56+
- '16'
57+
- '18'
58+
- '20'
59+
name: test ts - node v${{ matrix.node }}
60+
steps:
61+
- uses: actions/checkout@v4
62+
with:
63+
persist-credentials: false
64+
- uses: actions/setup-node@v4
65+
with:
66+
node-version: ${{ matrix.node }}
67+
cache: yarn
68+
- run: yarn install # --frozen-lockfile TODO get this option working
69+
- run: yarn test-ts

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
coverage/
22
node_modules
33
.nyc_output/
4+
/.yarn/

.travis.yml

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

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

0 commit comments

Comments
 (0)