From 5472220064c598ad35e57a9d2ca7deea7a979069 Mon Sep 17 00:00:00 2001 From: AH-dark Date: Sat, 23 Mar 2024 14:45:03 +0800 Subject: [PATCH] ci: testing ci --- .github/workflows/go.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/rust.yml | 19 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 .github/workflows/go.yml create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..af3f786 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,30 @@ +name: Go +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + name: Test + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: 1.21 + cache-dependency-path: | + go.sum + components/*/go.sum + + - name: Install dependencies + run: go mod download + + - name: Run tests + run: go test -v ./... diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..e2b2847 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,19 @@ +name: Rust +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + name: Test + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Run tests + run: cargo test