Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up github actions and other github related stuff #45

Merged
merged 8 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Set to true to add reviewers to pull requests
addReviewers: true

# Set to true to add assignees to pull requests
addAssignees: true

# A list of reviewers to be added to pull requests (GitHub user name)
reviewers:
- Sidaroth
- Garlov

# A number of reviewers added to the pull request
# Set 0 to add all the reviewers (default: 0)
numberOfReviewers: 0

# A list of assignees, overrides reviewers if set
assignees:
- Sidaroth
- Garlov

# A number of assignees to add to the pull request
# Set to 0 to add all of the assignees.
# Uses numberOfReviewers if unset.
numberOfAssignees: 1

# A list of keywords to be skipped the process that add reviewers if pull requests include it
# skipKeywords:
# - wip
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
open-pull-requests-limit: 10
20 changes: 20 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Details

*Details for how to test and what is being added should be described here*<br/>

## Types of changes
What types of changes does your code introduce?

_Put an `x` in the boxes that apply_

- [ ] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] CI/CD Workflow update
- [ ] Minor or Documentation Update (if none of the other choices apply)

## Checklist

_Put an `x` in the boxes that apply. You can also fill these out after creating the PR._

- [ ] I have merged the corresponding branch (likely main) into this branch and handled any merge conflicts that arise.
- [ ] I have not used any code or snippet that is not an open license.
12 changes: 12 additions & 0 deletions .github/workflows/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Auto Assign"
on:
pull_request:
types: [opened, ready_for_review]

jobs:
add-reviewers:
runs-on: ubuntu-latest
steps:
- uses: kentaro-m/[email protected]
with:
configuration-path: .github/auto_assign.yml
32 changes: 32 additions & 0 deletions .github/workflows/blt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build - Lint - Test

on:
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:

jobs:
BLT:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: pnpm/[email protected]
with:
version: 7.33.6
- uses: actions/setup-node@v3
with:
node-version: 20.7.0
registry-url: https://npm.pkg.github.com/
cache: 'pnpm'
- name: Install packages
run: pnpm install
- name: Lint
run: pnpm lint
- name: Build lib
run: pnpm build
# - name: Test
# run: pnpm test
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
"version": "2.0.0",
"description": "Phaser 3 Boilerplate project for rapid development.",
"author": "Christian Holt ([email protected])",
"contributors": [
{
"name": "Christian Holt",
"email": "[email protected]"
},
{
"name": "Øyvind Nordli",
"email": "[email protected]"
}
],
"main": "src/index.ts",
"scripts": {
"start": "pnpm run dev",
Expand All @@ -14,7 +24,6 @@
},
"license": "MIT",
"licenseUrl": "http://www.opensource.org/licenses/mit-license.php",
"homepage": "https://sidaroth.no",
"repository": {
"type": "git",
"url": "git+https://github.com/sidaroth/Phaser3.Boilerplate.git"
Expand Down
20 changes: 10 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.