diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/.DS_Store differ diff --git a/.github/workflows/conventional-pr-lint.yml b/.github/workflows/conventional-pr-lint.yml new file mode 100644 index 0000000..6c1bcf9 --- /dev/null +++ b/.github/workflows/conventional-pr-lint.yml @@ -0,0 +1,21 @@ +name: Check PR Title + +on: + pull_request: + types: + - opened + - edited + - synchronize + +jobs: + semantic-pr: + name: Semantic PR + runs-on: ubuntu-latest + timeout-minutes: 1 + steps: + - uses: amannn/action-semantic-pull-request@v4.2.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + validateSingleCommit: true + subjectPattern: ^(?![A-Z]).+$ diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml new file mode 100644 index 0000000..81ee3d7 --- /dev/null +++ b/.github/workflows/linting.yml @@ -0,0 +1,30 @@ +name: Code Linting + +on: + pull_request: + branches: ["main"] + types: [ready_for_review, synchronize, opened] + +jobs: + lint-test: + name: Linting + timeout-minutes: 10 + if: ${{ github.event.pull_request.draft == false }} + runs-on: ubuntu-latest + steps: + - run: sudo timedatectl set-timezone Europe/Berlin + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: "16" + - name: Prepare dependencies + run: yarn + - name: ESLint + uses: reviewdog/action-eslint@v1.16.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + reporter: github-pr-review + level: "warning" + fail_on_error: true + - name: TypeScript Compile + run: yarn tsc