Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Commit

Permalink
Migrate to GitHub Actions (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
kezhenxu94 committed Apr 20, 2020
1 parent d15cbec commit 2d8dc56
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 17 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

0 comments on commit 2d8dc56

Please sign in to comment.