-
Notifications
You must be signed in to change notification settings - Fork 605
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: update github action * chore: remove error github action
- Loading branch information
Showing
2 changed files
with
17 additions
and
68 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,29 @@ | ||
name: build | ||
|
||
on: ["push"] | ||
on: [push] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js 14 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
- name: yarn install | ||
run: | | ||
yarn install | ||
- name: lint | ||
run: | | ||
npm run lint | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js 14 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
- name: yarn install | ||
run: | | ||
yarn install | ||
- name: build | ||
run: | | ||
npm run build | ||
runs-on: macOS-latest | ||
|
||
test: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js 14 | ||
uses: actions/setup-node@v2 | ||
- name: Checkout | ||
uses: actions/checkout@v2.3.4 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v2.1.5 | ||
with: | ||
node-version: 14 | ||
- name: yarn install | ||
run: | | ||
yarn install | ||
- name: test | ||
node-version: '14' | ||
|
||
- name: Run CI | ||
run: | | ||
npm install | ||
npm run lint | ||
npm run build | ||
npm run coverage | ||
env: | ||
CI: true | ||
- name: Coveralls | ||
- name: Update coverall | ||
if: ${{ success() }} | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |