Skip to content

Commit

Permalink
update names
Browse files Browse the repository at this point in the history
  • Loading branch information
Zafei-Erin committed Feb 21, 2024
1 parent 71c6670 commit f6bfbe5
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
labels: "prod: backend"

deploy-aws:
needs: build
needs: deploy-git
runs-on: aws-nft

steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: Staging
name: Backend-ci

on:
push:
branches: [main]
pull_request:
types: [labeled]

jobs:
deploy-backend:
push-docker:
if: "${{ github.event.label.name == 'deploy: backend' }}"
runs-on: ubuntu-latest

Expand All @@ -17,6 +19,21 @@ jobs:
uses: actions-ecosystem/action-remove-labels@v1
with:
labels: "deploy: backend"

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: "npm"
cache-dependency-path: "backend/package-lock.json"

- name: Install deps
run: npm install
working-directory: "backend"

- name: Run ci
run: npm ci
working-directory: "backend"

- name: Login to Docker Hub
uses: docker/login-action@v3
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/Frontend-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Frontend-ci

on:
push:
branches: [main]
pull_request:
types: [labeled]

jobs:
test:
if: "${{ github.event.label.name == 'deploy: frontend' }}"
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Remove deploy label
uses: actions-ecosystem/action-remove-labels@v1
with:
labels: "deploy: frontend"

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: "npm"
cache-dependency-path: "frontend/package-lock.json"

- name: Install deps
run: npm install
working-directory: "frontend"

- name: Run ci
run: npm ci
working-directory: "frontend"
32 changes: 0 additions & 32 deletions .github/workflows/ci.yaml

This file was deleted.

0 comments on commit f6bfbe5

Please sign in to comment.