2020-07-25 23:38:24 +08:00
|
|
|
name: CI
|
|
|
|
|
2020-08-30 22:17:27 +08:00
|
|
|
on: [push, pull_request]
|
2020-07-25 23:38:24 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Test
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-08-03 18:07:29 +08:00
|
|
|
- name: Setup node
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
- name: Install dependencies
|
|
|
|
run: yarn install --frozen-lockfile
|
2020-08-04 10:49:49 +08:00
|
|
|
- name: Lint
|
|
|
|
run: yarn lint
|
2020-08-03 21:18:20 +08:00
|
|
|
- name: Test
|
|
|
|
run: yarn test
|
2020-08-29 23:25:13 +08:00
|
|
|
|
|
|
|
dependabot:
|
|
|
|
needs:
|
|
|
|
- Test
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: auto-merge
|
|
|
|
uses: ridedott/dependabot-auto-merge-action@master
|
|
|
|
with:
|
|
|
|
GITHUB_LOGIN: dependabot[bot]
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|