Skip to content

Commit

Permalink
Repo standardization (#851)
Browse files Browse the repository at this point in the history
* Repo standardization

- Adding GH actions workflow

- Enforcing minimum Node version of 12

- Adding CODEOWNERS file

- Adding basic .gitattributes file

- Adding basic .editorconfig file

* Adding MM devs to CODEOWNERS file
  • Loading branch information
ryanml authored May 18, 2021
1 parent 418545c commit 6dfeb4b
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 40 deletions.
40 changes: 0 additions & 40 deletions .circleci/config.yml

This file was deleted.

9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto

yarn.lock linguist-generated=false
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Lines starting with '#' are comments.
# Each line is a file pattern followed by one or more owners.

* @xrn @MetaMask/devs
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test

on:
push:
branches: [ master ]
pull_request:

jobs:
test:
name: Test
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn --frozen-lockfile
- run: yarn test
all-jobs-pass:
name: All jobs pass
runs-on: ubuntu-20.04
needs:
- test
steps:
- run: echo "Great success!"
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v12
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"engines": {
"node": ">=12.0.0"
},
"scripts": {
"test": "node test"
},
Expand Down

0 comments on commit 6dfeb4b

Please sign in to comment.