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:
parent
be56945a70
commit
f493188942
4
.github/workflows/java.yml
vendored
4
.github/workflows/java.yml
vendored
@ -3,10 +3,10 @@ name: Java
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
paths-ignore: ['swift/**']
|
paths-ignore: ['swift/**', '*.podspec', 'node/**', 'package.json', 'yarn.lock']
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
paths-ignore: ['swift/**']
|
paths-ignore: ['swift/**', '*.podspec', 'node/**', 'package.json', 'yarn.lock']
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
36
.github/workflows/node.yml
vendored
Normal file
36
.github/workflows/node.yml
vendored
Normal 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
|
4
.github/workflows/rust.yml
vendored
4
.github/workflows/rust.yml
vendored
@ -3,10 +3,10 @@ name: Rust
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
paths-ignore: ['swift/**', 'java/**']
|
paths-ignore: ['swift/**', '*.podspec', 'java/**', 'node/**', 'package.json', 'yarn.lock']
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
paths-ignore: ['swift/**', 'java/**']
|
paths-ignore: ['swift/**', '*.podspec', 'java/**', 'node/**', 'package.json', 'yarn.lock']
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
4
.github/workflows/swift.yml
vendored
4
.github/workflows/swift.yml
vendored
@ -3,10 +3,10 @@ name: Swift
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
paths-ignore: ['java/**']
|
paths-ignore: ['java/**', 'node/**', 'package.json', 'yarn.lock']
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
paths-ignore: ['java/**']
|
paths-ignore: ['java/**', 'node/**', 'package.json', 'yarn.lock']
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
"eslint": "cd node && eslint .",
|
"eslint": "cd node && eslint .",
|
||||||
"lint": "yarn eslint && yarn tslint",
|
"lint": "yarn eslint && yarn tslint",
|
||||||
"tslint": "tslint --format stylish --project node",
|
"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",
|
"license": "AGPL-3.0-only",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
Loading…
Reference in New Issue
Block a user