From 75b508fb4a2a9def529bef0e4ac332f373bafe79 Mon Sep 17 00:00:00 2001 From: lsndr Date: Mon, 25 Dec 2023 11:42:12 +0700 Subject: [PATCH] ci: use `semantic-release` --- .../workflows/{CI.yml => build-and-test.yml} | 20 +++---------------- .github/workflows/pr.yaml | 9 +++++++++ 2 files changed, 12 insertions(+), 17 deletions(-) rename .github/workflows/{CI.yml => build-and-test.yml} (98%) create mode 100644 .github/workflows/pr.yaml 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