mirror of
https://github.com/casey/just.git
synced 2024-11-26 23:27:26 +03:00
Trigger build on pushes and pull requests (#607)
This commit is contained in:
parent
a7ce94f63e
commit
2b688d4858
9
.github/workflows/main.yaml
vendored
9
.github/workflows/main.yaml
vendored
@ -1,9 +1,16 @@
|
||||
name: Build
|
||||
|
||||
on: [push]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
all:
|
||||
name: All
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
|
@ -1,6 +1,5 @@
|
||||
use crate::common::*;
|
||||
|
||||
use target;
|
||||
use Function::*;
|
||||
|
||||
pub(crate) enum Function {
|
||||
|
@ -8,8 +8,10 @@
|
||||
clippy::implicit_return,
|
||||
clippy::indexing_slicing,
|
||||
clippy::integer_arithmetic,
|
||||
clippy::let_underscore_must_use,
|
||||
clippy::match_same_arms,
|
||||
clippy::missing_docs_in_private_items,
|
||||
clippy::missing_errors_doc,
|
||||
clippy::missing_inline_in_public_items,
|
||||
clippy::needless_pass_by_value,
|
||||
clippy::non_ascii_literal,
|
||||
@ -24,8 +26,7 @@
|
||||
clippy::too_many_lines,
|
||||
clippy::unreachable,
|
||||
clippy::use_debug,
|
||||
clippy::wildcard_enum_match_arm,
|
||||
clippy::missing_errors_doc
|
||||
clippy::wildcard_enum_match_arm
|
||||
)]
|
||||
|
||||
#[macro_use]
|
||||
|
@ -11,7 +11,7 @@ impl<'line> Shebang<'line> {
|
||||
|
||||
let mut pieces = line[2..]
|
||||
.lines()
|
||||
.nth(0)
|
||||
.next()
|
||||
.unwrap_or("")
|
||||
.trim()
|
||||
.splitn(2, |c| c == ' ' || c == '\t');
|
||||
|
Loading…
Reference in New Issue
Block a user