diff --git a/.github/workflows/CI.yml b/.github/workflows/build-and-test.yml similarity index 98% rename from .github/workflows/CI.yml rename to .github/workflows/build-and-test.yml index 6d0e6e0..ffd04cf 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/build-and-test.yml @@ -1,24 +1,10 @@ -name: CI +name: "Build & Test" env: DEBUG: napi:* APP_NAME: rrule-rust MACOSX_DEPLOYMENT_TARGET: '10.13' -concurrency: - group: ${{ github.ref }} - cancel-in-progress: true -'on': - push: - branches: - - master - tags-ignore: - - '**' - paths-ignore: - - '**/*.md' - - LICENSE - - '**/*.gitignore' - - .editorconfig - - docs/** - pull_request: null +on: + workflow_call: jobs: build: strategy: diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml new file mode 100644 index 0000000..2eae804 --- /dev/null +++ b/.github/workflows/pr.yaml @@ -0,0 +1,9 @@ +name: "Build & Test" +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true +on: + pull_request: null +jobs: + build_and_test: + uses: ./.github/workflows/build-and-test.yml \ No newline at end of file