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..0b31038 --- /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, windows-latest, macOS-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 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": [],