Add pull request workflows

This commit is contained in:
William Brawner 2024-03-28 21:39:58 -06:00
parent ef6432b663
commit b8f2f264df
2 changed files with 37 additions and 0 deletions

21
.github/workflows/auto-merge.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: Enable Auto Merge
on:
pull_request_target:
types:
- opened
- reopened
- edited
branches:
- main
jobs:
auto-merge:
runs-on: ubuntu-latest
if: ${{ github.actor == 'wbrawner' || github.actor == 'dependabot[bot]' }}
steps:
- name: Enable auto-merge
run: gh pr merge --auto --rebase "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GH_TOKEN}}

16
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,16 @@
name: Build
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build