Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
DominoTree committed Apr 22, 2024
1 parent 2aedb1f commit 38dd542
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 8 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/test_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,32 @@ name: NPM Build/Test

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
build:
npm:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ui/
steps:
- uses: actions/checkout@v4

- name: Restore dependencies
id: cache-npm-deps-restore
uses: actions/cache/restore@v4
with:
path: ui/node_modules
key: cache-npm-${{ hashFiles('ui/package-lock.json') }}

- name: Install dependencies
run: npm install
- name: Build

- name: npm Build
run: npm run build

- name: Save dependencies
id: cache-npm-deps-save
uses: actions/cache/save@v4
with:
path: ui/node_modules
key: cache-npm-${{ hashFiles('ui/package-lock.json') }}

28 changes: 25 additions & 3 deletions .github/workflows/test_rs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,34 @@ name: Cargo Build/Test

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0

jobs:
cargo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build

- name: Restore cached build files
id: cache-cargo-restore
uses: actions/cache/restore@v4
with:
path: |
/home/runner/.cargo
${{ github.workspace }}/target
key: cache-${{ hashFiles('Cargo.toml') }}

- name: Cargo Check
run: cargo check --verbose
- name: Run tests
run: cargo test --verbose

- name: Save dependencies
id: cache-cargo-save
uses: actions/cache/save@v4
with:
path: |
/home/runner/.cargo
${{ github.workspace }}/target
key: cache-${{ hashFiles('Cargo.toml') }}

0 comments on commit 38dd542

Please sign in to comment.