aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJason Miller <[email protected]>2020-05-26 18:54:17 -0400
committerJason Miller <[email protected]>2020-05-26 18:54:17 -0400
commit4be9189804cfd347192798f599960aa729b49b67 (patch)
tree9e6aedb79cdc8a8f7fbe7085f7b905c0c9ca431b /.github
parentdd64eea1de4cc6488363c5701b4890ac92fe09b2 (diff)
Switch to GitHub Actions
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/compressed-size.yml14
-rw-r--r--.github/workflows/main.yml21
2 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/compressed-size.yml b/.github/workflows/compressed-size.yml
new file mode 100644
index 0000000..d346ef8
--- /dev/null
+++ b/.github/workflows/compressed-size.yml
@@ -0,0 +1,14 @@
+name: Compressed Size
+
+on: [pull_request]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: preactjs/compressed-size-action@v1
+ with:
+ repo-token: "${{ secrets.GITHUB_TOKEN }}"
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..9d3aacf
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,21 @@
+name: CI
+
+on: [push]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v1
+ - uses: actions/setup-node@v1
+ with:
+ node-version: 12
+ - name: npm install, build, and test
+ run: |
+ npm install
+ npm run build --if-present
+ npm test
+ env:
+ CI: true