mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 01:16:31 +03:00
Improve JSON-RPC CI, no need to build things multiple times
This commit is contained in:
committed by
Simon Laux
parent
e7da0672ae
commit
7fc162543a
@@ -10,24 +10,7 @@ env:
|
|||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build_and_test:
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
profile: minimal
|
|
||||||
toolchain: stable
|
|
||||||
override: true
|
|
||||||
- name: Rust Cache
|
|
||||||
uses: Swatinem/rust-cache@v1.3.0
|
|
||||||
- name: Build
|
|
||||||
run: cargo build --verbose --features webserver -p deltachat-jsonrpc
|
|
||||||
- name: Run tests
|
|
||||||
run: cargo test --verbose --features webserver -p deltachat-jsonrpc
|
|
||||||
|
|
||||||
ts_bindings:
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@@ -40,29 +23,23 @@ jobs:
|
|||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
override: true
|
override: true
|
||||||
- name: Rust Cache
|
- name: Add Rust cache
|
||||||
uses: Swatinem/rust-cache@v1.3.0
|
uses: Swatinem/rust-cache@v1.3.0
|
||||||
- name: npm i
|
- name: npm install
|
||||||
run: |
|
run: |
|
||||||
cd deltachat-jsonrpc/typescript
|
cd deltachat-jsonrpc/typescript
|
||||||
npm i
|
npm install
|
||||||
- name: npm run generate-bindings
|
- name: Build TypeScript, run Rust tests, generate bindings
|
||||||
run: |
|
|
||||||
cd deltachat-jsonrpc/typescript
|
|
||||||
npm run generate-bindings
|
|
||||||
- name: npm run check ts
|
|
||||||
run: |
|
|
||||||
cd deltachat-jsonrpc/typescript
|
|
||||||
npx tsc --noEmit
|
|
||||||
- name: run integration tests
|
|
||||||
run: |
|
run: |
|
||||||
cd deltachat-jsonrpc/typescript
|
cd deltachat-jsonrpc/typescript
|
||||||
npm run build
|
npm run build
|
||||||
cargo build --features webserver
|
- name: Run integration tests
|
||||||
|
run: |
|
||||||
|
cd deltachat-jsonrpc/typescript
|
||||||
npm run test
|
npm run test
|
||||||
env:
|
env:
|
||||||
DCC_NEW_TMP_EMAIL: ${{ secrets.DCC_NEW_TMP_EMAIL }}
|
DCC_NEW_TMP_EMAIL: ${{ secrets.DCC_NEW_TMP_EMAIL }}
|
||||||
- name: run prettier
|
- name: Run linter
|
||||||
run: |
|
run: |
|
||||||
cd deltachat-jsonrpc/typescript
|
cd deltachat-jsonrpc/typescript
|
||||||
npm run prettier:check
|
npm run prettier:check
|
||||||
Reference in New Issue
Block a user