mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 14:36:29 +03:00
blindly copying deltachat-node to core repository
This commit is contained in:
51
node/.github/workflows/build-and-test-integration-linux.yml
vendored
Normal file
51
node/.github/workflows/build-and-test-integration-linux.yml
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
name: 'Linux'
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
name: "Build & Test integration"
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: System info
|
||||
run: |
|
||||
rustc -vV
|
||||
rustup -vV
|
||||
cargo -vV
|
||||
npm --version
|
||||
node --version
|
||||
|
||||
- name: Pull submodule
|
||||
run: npm run submodule
|
||||
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ${{ env.APPDATA }}/npm-cache # npm cache files are stored in `~/.npm` on Linux/macOS
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
|
||||
|
||||
- name: Cache cargo index
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.cargo/git
|
||||
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
|
||||
|
||||
- name: Cache cargo build
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: deltachat-core-rust/target
|
||||
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
|
||||
|
||||
- name: Install dependencies
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: npm install --ignore-scripts --verbose
|
||||
|
||||
- name: Build deltachat-core-rust & bindings
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: npm run build
|
||||
|
||||
- name: Tests (+ Integration tests)
|
||||
run: npm run test
|
||||
env:
|
||||
DCC_NEW_TMP_EMAIL: ${{secrets.DCC_NEW_TMP_EMAIL}}
|
||||
Reference in New Issue
Block a user