Skip to content

Commit

Permalink
Add CI build/test for react app
Browse files Browse the repository at this point in the history
  • Loading branch information
bonomat committed Dec 2, 2020
1 parent 71bfea2 commit 1cf142e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,21 @@ jobs:
path: ~/.cargo/registry
key: rust-${{ matrix.rust_toolchain }}-cargo-registry-directory-${{ hashFiles('Cargo.lock') }}-v1

- name: Cache node_modules directory
uses: actions/cache@v1
with:
path: waves/node_modules
key: node-${{ matrix.rust_toolchain }}-node-modules-directory-${{ hashFiles('waves/yarn.lock') }}-v1

- name: Cargo check release code with default features
run: cargo check --workspace --all-targets --all-features

- name: Cargo test
run: cargo test --workspace --all-features

- name: React tests
run: |
cd waves
yarn install
yarn run build
yarn run test

0 comments on commit 1cf142e

Please sign in to comment.