Skip to content

Commit

Permalink
🌱 Add workflows and templates
Browse files Browse the repository at this point in the history
  • Loading branch information
ishantiw committed Jul 2, 2024
1 parent d9a26f1 commit 7ce3ece
Show file tree
Hide file tree
Showing 13 changed files with 132 additions and 134 deletions.
66 changes: 0 additions & 66 deletions .circleci/config.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: Bug report
about: Create a report to help us improve
title: ""
labels: "type: bug"
assignees: ""
---

### Expected behavior

### Actual behavior

### Steps to reproduce

### Which version(s) does this affect? (Environment, OS, etc...)
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature request
about: Propose an idea for new improvements/features
title: ""
labels: ""
assignees: ""
---

### Description

Please describe what functionality is needed

### Motivation

Please describe why it is needed

### Additional Information
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-specification.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature specification
about: Specification of new features/improvements
title: ""
labels: ""
assignees: ""
---

### Description

Please describe the specification of new features/improvements

### Acceptance Criteria

Please describe the conditions which must be met for this issue to close

### Additional Information
11 changes: 11 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### What was the problem?

This PR resolves #INSERT_ISSUE_NUMBER

### How was it solved?

<!--- Please describe your technical implementation -->

### How was it tested?

<!--- Please describe how you tested your changes -->
19 changes: 0 additions & 19 deletions .github/dependabot.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/workflows/dependency-review.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/workflows/deploy.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "PR"
on:
pull_request:

jobs:
build-and-test:
runs-on: ubuntu-latest
timeout-minutes: 30 # `yarn test` takes longer time
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install yarn
run: npm install --global yarn
- name: Install dependencies
shell: bash
run: yarn --prefer-offline
- name: Build
shell: bash
run: yarn build
- run: yarn format
- name: Check format
run: |
if [ -z "$(git status --untracked-files=no --porcelain)" ]; then
echo "All files formatted"
else
echo "Running format is required"
exit 1
fi
- run: yarn test
19 changes: 0 additions & 19 deletions .github/workflows/publish.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# dotfiles are ignored by default and must be added explicitly. Use
# `git add -f <dotfile>` add a dotfile. Only do this for public files.
.*
.env
.secret

node_modules
coverage
Expand Down
38 changes: 36 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,41 @@
# Folders
node_modules
artifacts
cache
coverage*
gasReporterOutput.json
dist
typechain*

# Files
LICENCE
CODEOWNERS
gasReporterOutput.json
deployments/mainnet/.chainId
src/monitor/.env.sample
Dockerfile

# project specific paths
dist/

## ignore files
.*ignore

# Ignore extensions
*.env
*.png
*.sql
*.sh
*.html
*.info
*.xml
*.log
*.proto
*.csv
*.cmd
*.tsbuildinfo
*.blob
*.lock
*.keep
*.txt

# env example files
*.env.example
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"scripts": {
"lint": "yarn eslint && yarn prettier --list-different",
"lint-fix": "yarn eslint --fix && yarn prettier --write",
"prettier": "prettier .",
"format": "prettier --write '**/*'",
"eslint": "eslint .",
"test": "RELAYER_TEST=true hardhat test",
"build": "tsc --build",
Expand Down

0 comments on commit 7ce3ece

Please sign in to comment.