diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 7a874a3..b6ee7e7 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -1,9 +1,18 @@ on: workflow_dispatch: push: + branches-ignore: '**' # for normal push events paths: - '.github/workflows/workflow.yml' - 'src/**' + pull_request: + types: + - opened + - synchronize + - reopened + paths: + - '.github/workflows/workflow.yml' + - 'src/**' name: Test @@ -15,6 +24,7 @@ env: jobs: clippy: name: Clippy Check + if: github.event.pull_request.draft == false runs-on: ubuntu-latest-16-cores steps: - name: Checkout diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..85692f8 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "testing-ci" +version = "0.1.0" diff --git a/src/main.rs b/src/main.rs index e7a11a9..17f00a0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,4 @@ fn main() { - println!("Hello, world!"); + println!("Hello, world! Again we meet"); + println!("Hello, world! Again we meet"); }