Skip to content

Commit ffc798e

Browse files
authored
Merge pull request #3992 from imbsky/github-actions
Migrate to GitHub Actions
2 parents c5ab290 + ae621b3 commit ffc798e

File tree

4 files changed

+1115
-54
lines changed

4 files changed

+1115
-54
lines changed

.github/workflows/workflow.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Main workflow
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
strategy:
8+
matrix:
9+
os: [macos-latest, ubuntu-latest]
10+
node-version: [8.x]
11+
12+
runs-on: ${{ matrix.os }}
13+
14+
env:
15+
BS_TRAVIS_CI: 1
16+
OCAMLRUNPARAM: b
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v2
21+
22+
- name: Checkout submodules
23+
run: |
24+
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
25+
git submodule sync --recursive
26+
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
27+
28+
- name: Use Node.js ${{ matrix.node-version }}
29+
uses: actions/setup-node@v1
30+
with:
31+
node-version: ${{ matrix.node-version }}
32+
33+
- name: Install packages
34+
run: npm ci
35+
36+
- name: Run tests
37+
run: npm test

.travis.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)