Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run cargo test in CI #69

Merged
merged 3 commits into from
Sep 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.