Skip to content

Commit f74ba67

Browse files
committed
Set up Github Actions
Travis is essentially dropping their open source support :/ Former-commit-id: 4642212 Former-commit-id: 4cf85a0
1 parent e2ff6ff commit f74ba67

File tree

3 files changed

+61
-28
lines changed

3 files changed

+61
-28
lines changed

.github/workflows/main.yaml

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

.github/workflows/size.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Bundle Size
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
build:
7+
name: Check compressed size
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2-beta
12+
with:
13+
fetch-depth: 1
14+
- uses: preactjs/compressed-size-action@v1
15+
with:
16+
repo-token: '${{ secrets.GITHUB_TOKEN }}'

.github/workflows/test.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
name: Test Suite
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Set up Node
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: 14.x
19+
20+
- name: Checkout code
21+
uses: actions/checkout@v2
22+
23+
- name: Cache dependencies
24+
uses: actions/cache@v2
25+
with:
26+
path: ~/.npm
27+
key: ${{ runner.OS }}-npm-${{ hashFiles('**/package-lock.json') }}
28+
restore-keys: |
29+
${{ runner.OS }}-npm-
30+
${{ runner.OS }}-
31+
32+
- name: Install dependencies
33+
run: npm ci
34+
35+
- name: Check types
36+
run: npm run check-types
37+
38+
- name: Check formatting
39+
run: npm run format:check
40+
41+
- name: Lint code
42+
run: npm run lint
43+
44+
- name: Run test suite
45+
run: npm test

0 commit comments

Comments
 (0)