From 88ef1a77d6b18671635faec8da71447b905da92a Mon Sep 17 00:00:00 2001 From: Vomitblood Date: Thu, 8 Aug 2024 01:31:49 +0800 Subject: [PATCH] updated github actions workflow --- .../{build-validation.yml => build.yml} | 4 +-- .github/workflows/testing.yml | 27 +++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) rename .github/workflows/{build-validation.yml => build.yml} (98%) create mode 100644 .github/workflows/testing.yml diff --git a/.github/workflows/build-validation.yml b/.github/workflows/build.yml similarity index 98% rename from .github/workflows/build-validation.yml rename to .github/workflows/build.yml index 7fddc01..4355ade 100644 --- a/.github/workflows/build-validation.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Test Build Frontend +name: Build on: push: @@ -39,8 +39,8 @@ jobs: shell: bash - name: Check cargo version - shell: bash run: cargo --version + shell: bash - name: Install mise run: | diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml new file mode 100644 index 0000000..c05a7f1 --- /dev/null +++ b/.github/workflows/testing.yml @@ -0,0 +1,27 @@ +name: Testing + +on: + push: + branches: + - "*" + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Install Rust + run: | + apt update && apt install -y curl + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + . "$HOME/.cargo/env" + shell: bash + + - name: Testing + run: | + cargo --help + cargo --version + shell: bash