From f64217458083875f570302b8c7a34dd7cf5375c1 Mon Sep 17 00:00:00 2001 From: Nimish Shah Date: Thu, 1 Oct 2020 02:53:08 +0530 Subject: [PATCH 1/3] add workflow auto label --- .github/label.yml | 2 ++ .github/workflows/autolabel.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/label.yml create mode 100644 .github/workflows/autolabel.yml diff --git a/.github/label.yml b/.github/label.yml new file mode 100644 index 0000000..367734c --- /dev/null +++ b/.github/label.yml @@ -0,0 +1,2 @@ +can-merge: + - '*' diff --git a/.github/workflows/autolabel.yml b/.github/workflows/autolabel.yml new file mode 100644 index 0000000..5293ff5 --- /dev/null +++ b/.github/workflows/autolabel.yml @@ -0,0 +1,27 @@ +name: CI Workflow + +on: [pull_request] + +jobs: + Check: + name: Build Checks + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + steps: + - uses: actions/checkout@v1 + - name: nodeJS unit test + run: | + npm i + npm run test + + AddLabel: + name: Add Label + runs-on: ubuntu-latest + needs: [Check] + steps: + - uses: actions/labeler@main + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + configuration-path: .github/label.yml From 9b7cd694984c20a6ac9f0c66d3957908ef39e049 Mon Sep 17 00:00:00 2001 From: Nimish Shah Date: Thu, 1 Oct 2020 02:53:59 +0530 Subject: [PATCH 2/3] add oses --- .github/workflows/autolabel.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autolabel.yml b/.github/workflows/autolabel.yml index 5293ff5..0b31038 100644 --- a/.github/workflows/autolabel.yml +++ b/.github/workflows/autolabel.yml @@ -8,7 +8,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest] + os: [ubuntu-latest, windows-latest, macOS-latest] steps: - uses: actions/checkout@v1 - name: nodeJS unit test From c35b140c5c4bf3ef60333c55adb425f2ace06c54 Mon Sep 17 00:00:00 2001 From: Nimish Shah Date: Thu, 1 Oct 2020 02:57:45 +0530 Subject: [PATCH 3/3] faster checks --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 745a10c..4a0df33 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "test": "mocha ./tests --recursive --timeout 15000 --no-deprecation", + "test": "mocha ./tests --recursive --timeout 15000 --no-deprecation --exit", "start": "node app.js" }, "keywords": [],