-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 938 Bytes
/
on-push.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Node.js CI
'on': [push, pull_request]
jobs:
test-node:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-18.04]
node-version: [10.x, 12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --pure-lockfile
- run: yarn test
- run: yarn run prettier
fmt-c:
runs-on: ubuntu-18.04
name: 'Format C++ & Yaml Code'
steps:
- uses: actions/checkout@v2
- name: Use Python to format C++
uses: actions/setup-python@v1
with:
python-version: 3.8
- run: pip install yamllint
- run: |
set +o noglob ;
find lib -name '*.cc' -printf '%h\0\c' | xargs -0 ./run-clang-format.py -r
- run: yamllint .