diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml new file mode 100644 index 0000000..3b38eb5 --- /dev/null +++ b/.github/workflows/development.yml @@ -0,0 +1,32 @@ +name: Development + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + check: + name: Set up checks + runs-on: ubuntu-latest + + steps: + - name: Check out Git repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v1 + with: + node-version: 16 + + - name: Install Node.js dependencies + run: npm ci + + - name: Run linters + run: npm run lint + + - name: Run tests + run: npm run test diff --git a/package.json b/package.json index 8b8414e..f5beb5e 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "chakra-ui" ], "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", + "test": "echo \"No test specified\" && exit 0", "lint": "eslint . --ext .ts && yarn prettier --write .", "start": "npx tsc && npm link && npx create-web3-dapp" },