Skip to content

Commit 1a486c1

Browse files
authored
ci: github actions (#7)
* ci: remove old ci * ci: use github ci
1 parent b70101c commit 1a486c1

5 files changed

Lines changed: 131 additions & 40 deletions

File tree

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
- package-ecosystem: "npm"
8+
directory: "/"
9+
schedule:
10+
interval: "daily"

.github/workflows/ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Continuous Integration
2+
on:
3+
push:
4+
paths-ignore:
5+
- "docs/**"
6+
- "*.md"
7+
pull_request:
8+
paths-ignore:
9+
- "docs/**"
10+
- "*.md"
11+
12+
env:
13+
CI: true
14+
COVERALLS: 0
15+
16+
jobs:
17+
build:
18+
runs-on: ${{ matrix.os }}
19+
strategy:
20+
matrix:
21+
# Maintenance and active LTS
22+
node-version: [10, 12, 14, 16]
23+
os: [ubuntu-latest, windows-latest, macOS-latest]
24+
name: Node ${{ matrix.node-version }}
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
29+
- name: Use Node.js
30+
id: setup_node
31+
uses: actions/setup-node@v2.1.4
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
35+
- name: Install Dependencies
36+
id: install
37+
run: npm install --ignore-scripts
38+
39+
- name: Check licenses
40+
id: license_check
41+
run: |
42+
npm run license-checker --if-present
43+
# Unit and lint tests
44+
- name: Tests
45+
id: test
46+
run: npm run test
47+
48+
- name: Typescript
49+
id: typescript_test
50+
run: npm run typescript --if-present
51+
52+
automerge:
53+
needs: build
54+
runs-on: ubuntu-latest
55+
steps:
56+
- uses: fastify/github-action-merge-dependabot@v1.2.0
57+
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' }}
58+
with:
59+
github-token: ${{secrets.GITHUB_TOKEN}}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Package Manager CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
pnpm:
10+
runs-on: ${{ matrix.os }}
11+
12+
strategy:
13+
matrix:
14+
# Maintenance and active LTS
15+
node-version: [10, 12, 14, 16]
16+
os: [ubuntu-latest]
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
21+
- name: Use Node.js
22+
uses: actions/setup-node@v2.1.4
23+
id: setup_node
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
27+
- name: Install with pnpm
28+
id: install_package_manager
29+
run: |
30+
curl -L https://unpkg.com/@pnpm/self-installer | node
31+
pnpm install
32+
- name: Run tests
33+
id: test
34+
run: |
35+
pnpm run test
36+
yarn:
37+
runs-on: ${{ matrix.os }}
38+
39+
strategy:
40+
matrix:
41+
# Maintenance and active LTS
42+
node-version: [10, 12, 14, 16]
43+
os: [ubuntu-latest]
44+
45+
steps:
46+
- uses: actions/checkout@v2
47+
48+
- name: Use Node.js
49+
id: setup_node
50+
uses: actions/setup-node@v2.1.4
51+
with:
52+
node-version: ${{ matrix.node-version }}
53+
54+
- name: Install with yarn
55+
id: install_package_manager
56+
run: |
57+
curl -o- -L https://yarnpkg.com/install.sh | bash
58+
yarn install --ignore-engines
59+
- name: Run tests
60+
id: test
61+
run: |
62+
yarn run test

.travis.yml

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

appveyor.yml

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

0 commit comments

Comments
 (0)