From 7177cce897935d226ecc857273955b6eeea0acdb Mon Sep 17 00:00:00 2001 From: Zak Farmer Date: Fri, 3 Nov 2023 18:03:42 +0000 Subject: [PATCH] fix: GitHub actions uses custom Docker image for tests --- .github/workflows/cargo-tests.yml | 13 +++++++++++++ .github/workflows/rust.yml | 21 --------------------- 2 files changed, 13 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/cargo-tests.yml delete mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/cargo-tests.yml b/.github/workflows/cargo-tests.yml new file mode 100644 index 0000000..b1a67d2 --- /dev/null +++ b/.github/workflows/cargo-tests.yml @@ -0,0 +1,13 @@ +name: Cargo testsuite + +on: [push, pull_request] +jobs: + test: + runs-on: ubuntu-latest + container: + image: pinelang/llvm-docker:latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Run cargo test + run: cargo test diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml deleted file mode 100644 index b4b0fa0..0000000 --- a/.github/workflows/rust.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Rust - -on: - push: - branches: ["main", "develop", "feature/**"] - pull_request: - branches: ["main"] - -env: - CARGO_TERM_COLOR: always - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose