未验证 提交 2d8dc569 编写于 作者: K kezhenxu94 提交者: GitHub

Migrate to GitHub Actions (#101)

上级 d15cbeca
name: Build
on:
pull_request:
push:
branches:
- master
tags:
- 'v*'
jobs:
Build:
runs-on: ubuntu-18.04
timeout-minutes: 30
strategy:
matrix:
node-version: [8, 9]
steps:
- uses: actions/checkout@v2
- name: checkout submodules
shell: bash
run: |
git submodule sync --recursive
git -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-
${{ runner.os }}-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Build & Test nodejs-agent
run: cd modules/nodejs-agent && npm install && npm run check && npm link
- name: Build & Test skyapm-egg-require
run: cd modules/skyapm-egg-require && npm link skyapm-nodejs && npm install && npm run check
sudo: required
os: osx
language: node_js
node_js:
- '9'
- '8'
cache:
directories:
- "node_modules"
script:
- cd ${TRAVIS_BUILD_DIR}/modules/nodejs-agent && npm install && npm run check && npm link
- cd ${TRAVIS_BUILD_DIR}/modules/skyapm-egg-require && npm link skyapm-nodejs && npm install && npm run check
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册