Skip to content

Commit

Permalink
Merge pull request #883 from foresterre/actions
Browse files Browse the repository at this point in the history
  • Loading branch information
foresterre authored Sep 25, 2023
2 parents a36c96c + f52b443 commit be16c4a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 24 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,23 @@ on:
- main
- staging # for Bors
- trying # for Bors
merge_group:
jobs:
linter:
name: linter
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: checkout_repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: install_rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
profile: minimal
components: clippy

- name: check_with_clippy_backend_pixels
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets --no-default-features --features backend_pixels -- -D warnings
run: cargo clippy --all-targets --no-default-features --features backend_pixels -- -D warnings

- name: check_with_clippy_backend_piston_window
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets --no-default-features --features backend_piston_window -- -D warnings
run: cargo clippy --all-targets --no-default-features --features backend_piston_window -- -D warnings
12 changes: 1 addition & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,13 @@ jobs:
strategy:
fail-fast: false
matrix:
build: [stable, beta, nightly, win-gnu, win-msvc]
build: [stable, win-gnu, win-msvc]
include:
# latest rust stable :: ubuntu
- build: stable
os: ubuntu-latest
rust: stable

# latest rust beta :: ubuntu
- build: beta
os: ubuntu-latest
rust: beta

# latest rust nightly :: ubuntu
- build: nightly
os: ubuntu-latest
rust: nightly

# latest rust stable :: windows + gnu
- build: win-gnu
os: windows-latest
Expand Down
2 changes: 2 additions & 0 deletions tests/cli.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::items_after_test_module)]

use assert_cmd::Command;
use common::input;
use parameterized::{ide, parameterized};
Expand Down

0 comments on commit be16c4a

Please sign in to comment.