Skip to content

Commit

Permalink
Run cargo test in CI (#69)
Browse files Browse the repository at this point in the history
* add test-rust CI step

* check test can fail

* remove rest of Justfile
  • Loading branch information
Pistonight committed Sep 30, 2023
1 parent ef09b59 commit bf6d019
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 89 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,19 @@ jobs:
- run: task themes:ci client:ci --output group
- run: task themes:build build:wasm build:types --output group
- run: task client:test

test-rust:
name: Test Rust Packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: arduino/setup-task@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: dtolnay/rust-toolchain@stable
- uses: baptiste0928/cargo-install@v2
with:
crate: regen-lang
- run: task core:grammar
- run: cargo test --all-features --all-targets
80 changes: 0 additions & 80 deletions Justfile

This file was deleted.

19 changes: 19 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@ includes:
dir: ./web-themes

tasks:
install:
desc: Install development dependencies and packages
cmds:
- rustup update
- cargo install cargo-watch wasm-pack regen-lang
- cargo install cross --git https://github.com/cross-rs/cross
- cargo install txtpp --features cli
- task: themes:install
- task: docs:install
- task: client:install

check:
desc: Check issues in all packages
deps: [check:ts, check:rs]
Expand Down Expand Up @@ -76,6 +87,14 @@ tasks:
cmds:
- docker stop $(docker ps -q -a --filter ancestor=pistonite/celer)

docker:push:
desc: Push the container to docker hub. Takes in the tag [defaults to latest]
interactive: true
cmds:
- docker login
- docker push pistonite/celer:{{.CLI_ARGS | default "latest" }}
- docker logout

build:
desc: Build production assets
deps:
Expand Down
9 changes: 0 additions & 9 deletions web-client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bf6d019

Please sign in to comment.