From 8ec9ce73bb6fb03a866a3c9da8f85f075259d221 Mon Sep 17 00:00:00 2001 From: Kahn <92762809+kahnclusions@users.noreply.github.com> Date: Fri, 2 Aug 2024 07:47:35 +0800 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..257aff6 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: Build and test + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Install + run: cargo install cargo-leptos + - name: Build + run: cargo leptos build --verbose + - name: Run tests + run: cargo test --verbose