Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EXTREME WIP] Lua plugins for custom lints #415

Draft
wants to merge 24 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
jobs:
build_windows:
runs-on: windows-latest
concurrency:
group: build_windows-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v1
- name: Build (Default features)
Expand All @@ -22,6 +25,9 @@ jobs:
path: ./target/release/selene.exe
build_windows_light:
runs-on: windows-latest
concurrency:
group: build_windows_light-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v1
- name: Build (Lightweight)
Expand All @@ -35,6 +41,9 @@ jobs:
path: ./target/release/selene.exe
build_mac:
runs-on: macos-latest
concurrency:
group: build_mac-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v1
- name: Install Rust
Expand All @@ -51,6 +60,9 @@ jobs:
path: ./target/release/selene
build_mac_light:
runs-on: macos-latest
concurrency:
group: build_mac_light-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v1
- name: Install Rust
Expand All @@ -67,6 +79,9 @@ jobs:
path: ./target/release/selene
build_linux:
runs-on: ubuntu-latest
concurrency:
group: build_linux-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v1
- name: Build (Default features)
Expand All @@ -80,6 +95,9 @@ jobs:
path: ./target/release/selene
build_linux_light:
runs-on: ubuntu-latest
concurrency:
group: build_linux_light-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v1
- name: Build (Lightweight)
Expand All @@ -93,6 +111,9 @@ jobs:
path: ./target/release/selene
release:
runs-on: ubuntu-latest
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true
needs: ['build_windows_light', 'build_windows', 'build_mac', 'build_mac_light', 'build_linux', 'build_linux_light']
if: contains(github.event.head_commit.message, '[release]')
steps:
Expand Down
29 changes: 24 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ on:
jobs:
test:
runs-on: ubuntu-latest
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v1
- name: Run clippy
run: cargo clippy -- -D warnings
- name: Run Rustfmt
run: cargo fmt -- --check
- uses: actions/checkout@v3
- name: Run tests (selene, all features)
run: cargo test
working-directory: selene
Expand All @@ -30,10 +29,30 @@ jobs:
# Remove this when non_exhaustive_omitted_patterns_lint is made stable in the next Rust version
test_exhaustive_checks:
runs-on: ubuntu-latest
concurrency:
group: test_exhaustive_checks-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v1
- name: Install nightly for exhaustive check tests
uses: dtolnay/rust-toolchain@nightly
- name: Run exhaustive check tests
run: cargo check --features force_exhaustive_checks
working-directory: selene-lib
alternate_tests:
runs-on: ubuntu-latest
concurrency:
group: alternate_tests-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
- name: Run clippy
run: cargo clippy -- -D warnings
if: always()
- name: Rustfmt
run: cargo fmt -- --check
if: always()
- name: Run integration tests
run: chmod +x ./run_tests.sh; ./run_tests.sh
working-directory: selene-integration-tests/
if: always()
Loading