Skip to content

Commit

Permalink
Merge pull request #117 from textileio/carson/buckets
Browse files Browse the repository at this point in the history
Buckets and Users APIs
  • Loading branch information
carsonfarmer authored Apr 30, 2020
2 parents aa9e355 + ade9920 commit cf31c5a
Show file tree
Hide file tree
Showing 25 changed files with 4,676 additions and 2,410 deletions.
40 changes: 40 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

## Type of change

Please delete options that are not relevant.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update

## How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

- [ ] Test A
- [ ] Test B

**Test Configuration**:
* Firmware version:
* Hardware:
* Toolchain:
* SDK:

## Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream modules

> This PR template comes from https://github.com/embeddedartistry/templates
70 changes: 0 additions & 70 deletions .github/workflows/lint_test.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: publish
name: Publish
on:
release:
types: [published]
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Review
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip-ci')"

steps:
- name: Checkout
uses: actions/checkout@v1
- name: Cache
uses: actions/cache@v1
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Setup
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install
run: npm install
- name: Lint
run: npm run lint

spelling:
name: Spelling
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: reviewdog/action-misspell@v1
with:
reporter: github-pr-review
github_token: ${{ secrets.github_token }}
locale: "US"

validate:
name: Validate
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1

- name: Run Commitsar
uses: docker://outillage/commitsar
69 changes: 69 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
name: Test
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip-ci')"

services:
textile:
image: textile/textile:latest
env:
TXTL_ADDR_API: /ip4/0.0.0.0/tcp/3006
TXTL_ADDR_API_PROXY: /ip4/0.0.0.0/tcp/3007
TXTL_ADDR_THREADS_HOST: /ip4/0.0.0.0/tcp/4006
TXTL_ADDR_GATEWAY_HOST: /ip4/0.0.0.0/tcp/8006
TXTL_ADDR_MONGO_URI: mongodb://mongo:27017
TXTL_ADDR_IPFS_API: /dns4/ipfs/tcp/5001
TXTL_EMAIL_SESSION_SECRET: textilesession
ports:
- "127.0.0.1:3006:3006"
- "3007:3007"
- "4006:4006"
- "127.0.0.1:8006:8006"
mongo:
image: mongo:latest
ports:
- "127.0.0.1:27017:27017"
ipfs:
image: ipfs/go-ipfs:v0.5.0-rc2
ports:
- "4001:4001"
- "127.0.0.1:5001:5001"
- "8080:8080"

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Setup
uses: actions/setup-node@v1
with:
node-version: 12

- name: Install
run: npm install

- name: Build Browser
run: |
npm run browser
- name: Test Node
run: |
npm run test:node
- name: Test Browser
run: |
npm run test:browser
- name: Build Docs
run: |
npm run docs
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Build files
dist/

**/.DS_Store

# Test results
allure-results/
allure-result/
Expand Down
Loading

0 comments on commit cf31c5a

Please sign in to comment.