Skip to content

Commit

Permalink
linear tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joepio committed Jul 25, 2023
1 parent 816a55e commit 4cb718d
Showing 1 changed file with 23 additions and 51 deletions.
74 changes: 23 additions & 51 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,6 @@ on: [push, workflow_dispatch]

name: "Build, test, clippy"
jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev
- uses: actions/checkout@v2
- uses: taiki-e/install-action@nextest
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Rust Cache
uses: Swatinem/rust-cache@v1.3.0
- uses: actions-rs/cargo@v1
with:
command: nextest
args: run --all-features --retries 3

coverage:
name: Code coverage
runs-on: ubuntu-latest
Expand All @@ -33,16 +12,6 @@ jobs:
- uses: actions/checkout@v2
- name: Install Rust and llvm-tools-preview
run: rustup component add llvm-tools-preview --toolchain stable-x86_64-unknown-linux-gnu
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --locked --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true

fmt:
name: Rustfmt
Expand All @@ -65,26 +34,6 @@ jobs:
command: fmt
args: --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Rust Cache
uses: Swatinem/rust-cache@v1.3.0
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy

e2e:
name: End-to-end tests
runs-on: ubuntu-latest
Expand Down Expand Up @@ -127,6 +76,29 @@ jobs:
run: |
pnpm install
pnpm run playwright-install
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy

- uses: taiki-e/install-action@nextest
- uses: actions-rs/cargo@v1
with:
command: nextest
args: run --all-features --retries 3

- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --locked --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true

- uses: actions-rs/cargo@v1
with:
command: build
Expand Down

0 comments on commit 4cb718d

Please sign in to comment.