mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
Add additional linting workflows
This commit is contained in:
parent
d752a6c128
commit
7312c647a8
1 changed files with 19 additions and 1 deletions
20
.github/workflows/elixir.yml
vendored
20
.github/workflows/elixir.yml
vendored
|
@ -31,6 +31,9 @@ jobs:
|
|||
- run: docker compose pull
|
||||
- run: docker compose build
|
||||
|
||||
- name: mix format
|
||||
run: docker compose run app mix format --check-formatted
|
||||
|
||||
- name: Build and test
|
||||
run: docker compose run app run-test
|
||||
|
||||
|
@ -50,6 +53,21 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
- uses: crate-ci/typos@master
|
||||
|
||||
cargo:
|
||||
name: Rust Linting and Unit Tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: cargo fmt
|
||||
run: (cd native/philomena && cargo fmt --check)
|
||||
|
||||
- name: cargo clippy
|
||||
run: (cd native/philomena && cargo clippy -- -D warnings)
|
||||
|
||||
lint-and-test:
|
||||
name: 'JavaScript Linting and Unit Tests'
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -80,4 +98,4 @@ jobs:
|
|||
working-directory: ./assets
|
||||
|
||||
- run: npm run build
|
||||
working-directory: ./assets
|
||||
working-directory: ./assets
|
||||
|
|
Loading…
Reference in a new issue