From e89974f54f4435543b204dff675c53221418ad76 Mon Sep 17 00:00:00 2001 From: pml68 Date: Thu, 27 Feb 2025 23:35:27 +0100 Subject: ci: add step for running tests --- .github/workflows/ci.yml | 19 +++++++++++++++++++ .github/workflows/lint.yml | 17 ----------------- 2 files changed, 19 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/lint.yml (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..eba27cf --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: CI +on: [push, pull_request] +jobs: + ci: + runs-on: ubuntu-latest + steps: + - uses: hecrj/setup-rust-action@v2 + with: + components: clippy + - uses: actions/checkout@master + - name: Install dependencies + run: | + export DEBIAN_FRONTED=noninteractive + sudo apt-get -qq update + sudo apt-get install -y libxkbcommon-dev libgtk-3-dev + - name: Check lints + run: cargo lint + - name: Run tests + run: cargo test --verbose diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 4647a07..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Lint -on: [push, pull_request] -jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: hecrj/setup-rust-action@v2 - with: - components: clippy - - uses: actions/checkout@master - - name: Install dependencies - run: | - export DEBIAN_FRONTED=noninteractive - sudo apt-get -qq update - sudo apt-get install -y libxkbcommon-dev libgtk-3-dev - - name: Check lints - run: cargo lint -- cgit v1.2.3