mirror of
https://github.com/chatmail/core.git
synced 2026-04-05 15:02:11 +03:00
Default preinstalled toolchain is currently at 1.65.0, there is no need to overwrite it with 1.66.0 for these tests.
42 lines
991 B
YAML
42 lines
991 B
YAML
name: JSON-RPC API Test
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
RUST_MIN_STACK: "8388608"
|
|
|
|
jobs:
|
|
build_and_test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use Node.js 16.x
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16.x
|
|
- name: Add Rust cache
|
|
uses: Swatinem/rust-cache@v2
|
|
- name: npm install
|
|
run: |
|
|
cd deltachat-jsonrpc/typescript
|
|
npm install
|
|
- name: Build TypeScript, run Rust tests, generate bindings
|
|
run: |
|
|
cd deltachat-jsonrpc/typescript
|
|
npm run build
|
|
- name: Run integration tests
|
|
run: |
|
|
cd deltachat-jsonrpc/typescript
|
|
npm run test
|
|
env:
|
|
DCC_NEW_TMP_EMAIL: ${{ secrets.DCC_NEW_TMP_EMAIL }}
|
|
- name: Run linter
|
|
run: |
|
|
cd deltachat-jsonrpc/typescript
|
|
npm run prettier:check
|