mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
84ffb36494
* Bump minimum node version to 16. We already made the mistake of using features from 16 without realising Previously: https://github.com/matrix-org/mjolnir/pull/192 * Make sure CI uses specific version of node and we also lint. https://github.com/matrix-org/pipelines/blob/master/mjolnir/pipeline.yml#L13
54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
name: Mjolnir
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build:
|
|
name: Build & Lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Specifically use node 16 like in the readme.
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '16'
|
|
- run: yarn install
|
|
- run: yarn build
|
|
- run: yarn lint
|
|
unit:
|
|
name: Unit tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Specifically use node 16 like in the readme.
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '16'
|
|
- run: yarn install
|
|
- run: yarn test
|
|
integration:
|
|
name: Integration tests
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 60
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '16'
|
|
- name: install mx-tester
|
|
run: cargo install mx-tester
|
|
- name: Setup image
|
|
run: RUST_LOG=debug mx-tester build up
|
|
- name: Setup dependencies
|
|
run: yarn install
|
|
- name: Run tests
|
|
run: RUST_LOG=debug mx-tester run
|