diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d1b81f86..686c6def 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,12 +1,28 @@ -name: Autocloser -on: [issues] +name: Basic pipeline +on: + push: + branches: + - 'master' + pull_request: + branches: [master] + workflow_dispatch: + jobs: - autoclose: + build: runs-on: ubuntu-latest steps: - - name: Issue auto-closer - uses: roots/issue-closer-action@v1.1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - issue-close-message: "@${issue.user.login} this issue was automatically closed because it did not follow the bellow rules:\n\n
\n\n\n\nIMPORTANT: Please use the following link to create a new issue:\n\nhttps://www.creative-tim.com/new-issue/vue-paper-dashboard\n\n**If your issue was not created using the app above, it will be closed immediately.**\n\n\n\nLove Creative Tim? Do you need Angular, React, Vuejs or HTML? You can visit:\nš https://www.creative-tim.com/bundles\nš https://www.creative-tim.com\n\n\n\n\n" - issue-pattern: (\#\#\# Version([\S\s.*]*?)\#\#\# Reproduction link([\S\s.*]*?)\#\#\# Operating System([\S\s.*]*?)\#\#\# Device([\S\s.*]*?)\#\#\# Browser & Version([\S\s.*]*?)\#\#\# Steps to reproduce([\S\s.*]*?)\#\#\# What is expected([\S\s.*]*?)\#\#\# What is actually happening([\S\s.*]*?)---([\S\s.*]*?)\#\#\# Solution([\S\s.*]*?)\#\#\# Additional comments([\S\s.*]*?)\<\!-- generated by creative-tim-issues\. DO NOT REMOVE --\>)|(\#\#\# What is your enhancement([\S\s.*]*?)\<\!-- generated by creative-tim-issues\. DO NOT REMOVE --\>) + - name: Checkout code + uses: actions/checkout@v2 + - name: Set up Node.js environment + uses: actions/setup-node@v4.0.2 + with: + node-version: '18.11.0' + - name: Install dependencies + run: npm install + - name: Start the project + run: npm run serve & + - name: Wait for Vue server to sleep + run: sleep 12s + - name: Stop server + run: kill $(lsof -t -i :8080) || true + diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 00000000..380cc241 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,12 @@ +# required metadata +sonar.projectKey=nodejs-project +sonar.projectName=Node-Project +sonar.projectVersion=1.0.0 +# optional description +sonar.projectDescription=This project demonstrates a simple node js. +# path to source directories +sonar-sources=./ +# The value of the property must be the key of the language. +sonar.Language=js +# Encoding of the source code +sonar.sourceEncoding=UTF-B diff --git a/workflow b/workflow new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/workflow @@ -0,0 +1 @@ +