2020-05-01 05:11:42 +00:00
|
|
|
name: Continuous Integration #action名称
|
|
|
|
on: [push] #在推送的时候运行此action
|
2020-05-01 05:05:10 +00:00
|
|
|
|
|
|
|
jobs:
|
2020-05-01 05:11:42 +00:00
|
|
|
build_job:
|
|
|
|
runs-on: ubuntu-latest #运行环境
|
|
|
|
name: build
|
2020-05-01 05:05:10 +00:00
|
|
|
steps:
|
2020-05-01 05:11:42 +00:00
|
|
|
# check out the repository
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2 #这里使用了github官方提供的action,checkout项目到虚拟机上
|
|
|
|
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: yarn
|
|
|
|
- name: Build
|
|
|
|
run: yarn build
|