Skip to content

Commit

Permalink
Merge pull request #98 from GoldenJaden/separate-enlist-build-action
Browse files Browse the repository at this point in the history
Divided enlist and build-push action to 2 separated actions
  • Loading branch information
GoldenJaden authored Oct 26, 2023
2 parents 458bfbc + 00acf42 commit 1da02f9
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,35 +1,21 @@
name: Build and push docker image
name: Deploy API

on:
push:
branches:
- '*'
- 'main'
tags:
- 'v*'

env:
REGISTRY: ghcr.io

jobs:
eslint:
name: Run eslint check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install dependencies
run: |
yarn install
- name: Run ESLint
run: yarn lint

build:
runs-on: ubuntu-22.04

steps:
- name: Checkout repository
- name: Checkout Repository
uses: actions/checkout@v3

- name: Get full image name
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/run-build-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Run build check

on:
push:
branches:
- '*'
tags:
- 'v*'

pull_request:
types: [opened, edited]
branches:
- '*'

jobs:
build:
name: Run yarn build
runs-on: ubuntu-22.04

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install dependencies
run: yarn install

- name: Build
run: yarn build


28 changes: 28 additions & 0 deletions .github/workflows/run-eslint-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Run ESlint check

on:
push:
branches:
- '*'
tags:
- 'v*'

pull_request:
types: [opened, edited]
branches:
- '*'

jobs:
eslint:
name: Run eslint check
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Install dependencies
run: |
yarn install
- name: Run ESLint
run: yarn lint
7 changes: 7 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
name: Run tests

on:
push:
branches:
- '*'
tags:
- 'v*'

pull_request:
types: [opened, edited]
branches:
- '*'

Expand Down

0 comments on commit 1da02f9

Please sign in to comment.