Skip to content

Commit

Permalink
use ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mistlog committed Dec 27, 2020
1 parent 57c850f commit 8a04101
Show file tree
Hide file tree
Showing 68 changed files with 2,764 additions and 2,195 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: build

on: [push]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm ci
npm run build --if-present
env:
CI: true
24 changes: 24 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: format

on: [push]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm ci
npm run check:format
env:
CI: true
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: test

on: [push]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm ci
npm test
env:
CI: true
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v1.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
github-token: ${{ secrets.github_token }}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Svelte Element

Element UI in svelte.
# Svelte Element · ![Build Status](https://github.com/mistlog/svelte-element/workflows/build/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/mistlog/svelte-element/badge.svg)](https://coveralls.io/github/mistlog/svelte-element)

Element UI in svelte.
Loading

0 comments on commit 8a04101

Please sign in to comment.