mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-01-20 01:22:59 +08:00
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: Build
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- README.md
|
|
- .gitignore
|
|
- .github/**
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
node-version: [12.x]
|
|
os: [ubuntu-latest]
|
|
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 install
|
|
npm run coverage
|
|
- uses: codecov/codecov-action@v1.0.2
|
|
with:
|
|
token: ${{secrets.CODECOV_TOKEN}}
|
|
env:
|
|
CI: true
|
|
|
|
- name: Discord notification
|
|
if: success()
|
|
env:
|
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
|
uses: Ilshidur/action-discord@master
|
|
with:
|
|
args: "simple-keyboard - CI Build Passed"
|
|
|
|
- name: Discord notification
|
|
if: failure()
|
|
env:
|
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
|
uses: Ilshidur/action-discord@master
|
|
with:
|
|
args: "simple-keyboard - CI Build Failed"
|