Skip to content

Commit

Permalink
ci: add github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
TarikGul committed Nov 15, 2023
1 parent 8dc7037 commit fa6f1e6
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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"
46 changes: 46 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -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
27 changes: 27 additions & 0 deletions .github/workflows/semantic.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit fa6f1e6

Please sign in to comment.