Skip to content

Commit

Permalink
Refactor YML
Browse files Browse the repository at this point in the history
Signed-off-by: Aravind Nair <22199259+aravindvnair99@users.noreply.github.com>
  • Loading branch information
aravindvnair99 committed May 21, 2021
1 parent 7dca6c2 commit 64eda93
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 65 deletions.
22 changes: 11 additions & 11 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
HTML:
- any: ['**/*.html']
- any: ["**/*.html"]
EJS:
- any: ['**/*.ejs']
- any: ["**/*.ejs"]
CSS:
- any: ['**/*.css']
- any: ["**/*.css"]
JavaScript:
- any: ['**/*.js']
all: ['!functions/index.js']
- any: ["**/*.js"]
all: ["!functions/index.js"]
images:
- any: ['**/*.png', '**/*.jpg', '**/*.jpeg', '**/*.svg', '**/*.gif']
- any: ["**/*.png", "**/*.jpg", "**/*.jpeg", "**/*.svg", "**/*.gif"]
workflows:
- any: ['.github/workflows/*']
- any: [".github/workflows/*"]
front-end:
- any: ['public/**/*']
- any: ["public/**/*"]
back-end:
- any: ['functions/**/*']
- any: ["functions/**/*"]
dependencies:
- any: ['functions/package.json', 'functions/package-lock.json']
- any: ["functions/package.json", "functions/package-lock.json"]
documentation:
- any: ['**/*.md']
- any: ["**/*.md"]
62 changes: 31 additions & 31 deletions .github/workflows/firebase.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
name: Firebase CD
on:
workflow_dispatch:
# push:
# paths:
# - 'functions/**'
# - 'public/**'
# - '.firebaserc'
# - 'firebase.json'
# - '.github/workflows/firebase.yml'
# branches:
# - main
workflow_dispatch:
push:
paths:
- "functions/**"
- "public/**"
- ".firebaserc"
- "firebase.json"
- ".github/workflows/firebase.yml"
branches:
- main

jobs:
deploy:
name: Firebase Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@main
- name: Setup Node.js 14
uses: actions/setup-node@main
with:
node-version: v14.x
- name: Install Dependencies
run: |
cd functions/
sudo npm i -g npm
npm ci
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
deploy:
name: Firebase Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@main
- name: Setup Node.js 14
uses: actions/setup-node@main
with:
node-version: v14.x
- name: Install Dependencies
run: |
cd functions/
sudo npm i -g npm
npm ci
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
12 changes: 6 additions & 6 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Labeler
on: [pull_request]

jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@master
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
label:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@master
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
34 changes: 17 additions & 17 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ name: Node CI
on: push

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@main
- name: Setup Node.js 14
uses: actions/setup-node@main
with:
node-version: v14.x
- name: Install Dependencies
run: |
cd functions/
sudo npm i -g npm
npm ci
npm run lint
env:
CI: true
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@main
- name: Setup Node.js 14
uses: actions/setup-node@main
with:
node-version: v14.x
- name: Install Dependencies
run: |
cd functions/
sudo npm i -g npm
npm ci
npm run lint
env:
CI: true

0 comments on commit 64eda93

Please sign in to comment.