diff --git a/.github/workflows/create_pull_request.yml b/.github/workflows/create_pull_request.yml new file mode 100644 index 0000000..d9d1eb5 --- /dev/null +++ b/.github/workflows/create_pull_request.yml @@ -0,0 +1,21 @@ +name: Pull Request Action +on: + push: + branches: + - feature/* + - test/* + - test + +jobs: + create-pull-request: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v2 + - name: pull-request + uses: repo-sync/pull-request@v2 + with: + destination_branch: "develop" + github_token: ${{ secrets.GITHUB_TOKEN }} + pr_label: "feature, automated pr" + pr_title: "[Example] Simple demo" \ No newline at end of file diff --git a/.github/workflows/pull_request.yml b/.github/workflows/merge_pull_request.yml similarity index 87% rename from .github/workflows/pull_request.yml rename to .github/workflows/merge_pull_request.yml index eddd2ef..464e120 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/merge_pull_request.yml @@ -2,7 +2,7 @@ name: test on: pull_request: - branches: [master] + branches: [master, develop, staging] jobs: build: diff --git a/.github/workflows/npm-gulp.yml b/.github/workflows/npm-gulp.yml new file mode 100644 index 0000000..32297a6 --- /dev/null +++ b/.github/workflows/npm-gulp.yml @@ -0,0 +1,28 @@ +name: NodeJS with Gulp + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.x, 16.x] + + steps: + - uses: actions/checkout@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Build + run: | + npm install + gulp