Skip to content

Commit

Permalink
Merge pull request #20 from malipramod/ci
Browse files Browse the repository at this point in the history
Update to run auto assign on PR only
  • Loading branch information
malipramod committed Jul 27, 2020
2 parents edbc72a + 488d414 commit c3eee48
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto_assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ reviewers:

# A number of reviewers added to the pull request
# Set 0 to add all the reviewers (default: 0)
numberOfReviewers: 0
numberOfReviewers: 1
11 changes: 1 addition & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
name: Firebase Deploy
name: Build and Deploy
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
auto_assign:
runs-on: ubuntu-latest
steps:
- uses: kentaro-m/auto-assign-action@v1.1.1
with:
configuration-path: ".github/workflows/auto_assign.yml"
build:
name: Build
runs-on: ubuntu-latest
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/pr-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Pull Request
on:
pull_request:
branches:
- master

jobs:
autoAssign:
name: Auto Assign
runs-on: ubuntu-latest
steps:
- uses: kentaro-m/auto-assign-action@v1.1.1
with:
configuration-path: ".github/workflows/auto_assign.yml"
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Install Dependencies
run: npm install
- name: Run Tests
env:
CI: true
run: npm test
- name: Build
run: npm run build
- name: Archive Production Artifact
uses: actions/upload-artifact@master
with:
name: build
path: build

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ yarn-debug.log*
yarn-error.log*

.firebase
settings.json

0 comments on commit c3eee48

Please sign in to comment.