Skip to content
Merged
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
36 changes: 16 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,35 @@ jobs:
check:
name: Check
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [stable, beta, nightly]
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- run: rustup update ${{ matrix.toolchain }}
- run: rustup default ${{ matrix.toolchain }}
- run: cargo check --all
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- run: rustup update stable
- run: rustup default stable
- run: cargo check --all-targets

test:
name: Test Suite
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [stable, beta, nightly]
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- run: rustup update ${{ matrix.toolchain }}
- run: rustup default ${{ matrix.toolchain }}
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- run: rustup update stable
- run: rustup default stable
- run: cargo test --all

lints:
name: Lints
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [stable]
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- run: rustup update ${{ matrix.toolchain }}
- run: rustup default ${{ matrix.toolchain }}
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- run: rustup update stable
- run: rustup default stable
- run: rustup component add rustfmt clippy
- run: cargo fmt --all -- --check
- run: cargo clippy --all -- -D warnings
- run: cargo clippy --all-targets -- -D warnings
- name: Doc
env:
RUSTDOCFLAGS: -D warnings
run: cargo doc --no-deps
8 changes: 2 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
name: GitHub Pages Deploy

# Controls when the workflow will run
on:
push:
branches: [ "master" ]

# Allows you to run this workflow manually from the Actions tab
branches: [main]
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- run: rustup update stable
- run: rustup target add wasm32-unknown-unknown
- run: cargo build --release --target wasm32-unknown-unknown -p efmt_wasm
Expand Down
164 changes: 19 additions & 145 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "efmt"
version = "0.21.0"
authors = ["Takeru Ohta <phjgt308@gmail.com>"]
edition = "2024"
license = "MIT OR Apache-2.0"
description = "Erlang code formatter"
Expand All @@ -21,8 +20,5 @@ ignore = "0.4.22"
noargs = "0.4.1"
unicode-width = "0.2.2"

[dev-dependencies]
similar-asserts = "1"

[workspace]
members = ["efmt_core", "efmt_derive", "efmt_wasm"]
Loading