0
0
mirror of https://github.com/signalapp/libsignal.git synced 2024-09-20 03:52:17 +02:00

GitHub: PR testing for Node

This commit is contained in:
Jordan Rose 2020-10-23 12:09:59 -07:00
parent be56945a70
commit f493188942
5 changed files with 43 additions and 7 deletions

View File

@ -3,10 +3,10 @@ name: Java
on:
push:
branches: [ master ]
paths-ignore: ['swift/**']
paths-ignore: ['swift/**', '*.podspec', 'node/**', 'package.json', 'yarn.lock']
pull_request:
branches: [ master ]
paths-ignore: ['swift/**']
paths-ignore: ['swift/**', '*.podspec', 'node/**', 'package.json', 'yarn.lock']
env:
CARGO_TERM_COLOR: always

36
.github/workflows/node.yml vendored Normal file
View File

@ -0,0 +1,36 @@
name: Node
on:
push:
branches: [ master ]
paths-ignore: ['swift/**', '*.podspec', 'java/**']
pull_request:
branches: [ master ]
paths-ignore: ['swift/**', '*.podspec', 'java/**']
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install nightly rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
profile: minimal
- run: nvm install && nvm use
shell: bash -l {0}
- run: yarn install
- run: yarn lint
- run: yarn format -c
- run: yarn build
- name: Run yarn test
uses: GabrielBB/xvfb-action@v1.4
with:
# The tests use an Electron-based runner, so we need to set up a dummy display for them.
run: yarn test

View File

@ -3,10 +3,10 @@ name: Rust
on:
push:
branches: [ master ]
paths-ignore: ['swift/**', 'java/**']
paths-ignore: ['swift/**', '*.podspec', 'java/**', 'node/**', 'package.json', 'yarn.lock']
pull_request:
branches: [ master ]
paths-ignore: ['swift/**', 'java/**']
paths-ignore: ['swift/**', '*.podspec', 'java/**', 'node/**', 'package.json', 'yarn.lock']
env:
CARGO_TERM_COLOR: always

View File

@ -3,10 +3,10 @@ name: Swift
on:
push:
branches: [ master ]
paths-ignore: ['java/**']
paths-ignore: ['java/**', 'node/**', 'package.json', 'yarn.lock']
pull_request:
branches: [ master ]
paths-ignore: ['java/**']
paths-ignore: ['java/**', 'node/**', 'package.json', 'yarn.lock']
env:
CARGO_TERM_COLOR: always

View File

@ -11,7 +11,7 @@
"eslint": "cd node && eslint .",
"lint": "yarn eslint && yarn tslint",
"tslint": "tslint --format stylish --project node",
"format": "prettier --write package.json '*.js' 'node/**/*.{css,js,json,md,scss,ts,tsx}'"
"format": "p() { prettier ${@:- --write} package.json '*.js' 'node/**/*.{css,js,json,md,scss,ts,tsx}'; }; p"
},
"license": "AGPL-3.0-only",
"dependencies": {