From 183c3d7682d81560e483012116d36667e51cc05d Mon Sep 17 00:00:00 2001 From: wenyutang-ms Date: Wed, 3 Jan 2024 14:20:15 +0800 Subject: [PATCH 1/3] ci: add ci pipeline --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..bb8569a8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: "CI" +on: + pull_request: + branches: + - main + - dev + push: + branches: + - main + - dev + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v3 + with: + node-version: 18 + - name: setup project + run: | + npm install + npm run lint + + semver-title: + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v3.4.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From f8efbd30b9c94a190bc83d62cfa80485c9f663b2 Mon Sep 17 00:00:00 2001 From: wenyutang-ms Date: Thu, 4 Jan 2024 10:42:22 +0800 Subject: [PATCH 2/3] ci: update steps --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb8569a8..7e39163c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,6 +20,9 @@ jobs: - name: setup project run: | npm install + npm run build + - name: check lint + run: | npm run lint semver-title: From 88a5a8750b786aa4c97514c1cd933baa6ac9d3d6 Mon Sep 17 00:00:00 2001 From: wenyutang-ms Date: Thu, 4 Jan 2024 13:58:12 +0800 Subject: [PATCH 3/3] ci: update yaml --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e39163c..a4e5a9e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,11 +17,11 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 18 - - name: setup project + - name: Setup project run: | npm install - npm run build - - name: check lint + npm run package + - name: Check lint run: | npm run lint