diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..989667e --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,24 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: '/' + schedule: + interval: daily + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "weekly" + day: "monday" + time: "11:00" + # EST timezone + timezone: "America/New_York" + rebase-strategy: "auto" + # Disable versioned updates, and only allow security updates + open-pull-requests-limit: 0 + commit-message: + # Prefix all commit messages with "chore" + # include a list of updated dependencies + prefix: "chore:" + include: "scope" + labels: + - "dependencies" diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..ea7ba0f --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,46 @@ +name: pr + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout files + uses: actions/checkout@v4 + + - name: Install Node v18 + uses: actions/setup-node@v4 + with: + node-version: '18.14' + + - name: Install JS dependencies + run: yarn install + + - name: Linter + run: yarn lint + + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout files + uses: actions/checkout@v4 + + - name: Install Node v18 + uses: actions/setup-node@v4 + with: + node-version: '18.14' + + - name: Install JS dependencies + run: yarn install + + - name: Build + run: yarn build diff --git a/.github/workflows/semantic.yml b/.github/workflows/semantic.yml new file mode 100644 index 0000000..d51ad73 --- /dev/null +++ b/.github/workflows/semantic.yml @@ -0,0 +1,27 @@ +name: pr-title + +on: + pull_request: + branches: + - main + types: + - opened + - edited + - synchronize + pull_request_target: + types: + - opened + - edited + - synchronize + +jobs: + validate-title: + permissions: + pull-requests: read # for amannn/action-semantic-pull-request to analyze PRs + name: Validate PR Title + runs-on: ubuntu-latest + steps: + - name: semantic-pull-request + uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}