Skip to content

Commit

Permalink
[Job]: Adding built, lint, test, and deployment job
Browse files Browse the repository at this point in the history
  • Loading branch information
onemanfighter committed May 5, 2024
1 parent 8eb4ee4 commit e2e83e7
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy website on production

on:
push:
branches: ['production']

jobs:
setup_and_deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Install Dependencies
run: yarn install
- name: Build
run: yarn build --if-present
- name: 📂 Sync files
uses: SamKirkland/[email protected]
with:
server: ftp.dashboard.amitraikwar.in
username: u392139545.github_deploy_dashwave
password: ${{ secrets.HOSTINGER_DASHWAVE_FTP_PASSWORD }}
local-dir: ./build/
server-dir: ./
26 changes: 26 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build

on:
push:
branches: ['development']
pull_request:
branches: ['development']

jobs:
build_test_lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Install Dependencies
run: yarn install
- name: Build
run: yarn build --if-present
- name: Linting
run: yarn lint
- name: Test
run: yarn test:staged

0 comments on commit e2e83e7

Please sign in to comment.