Skip to content

Commit

Permalink
separated github actions in multiple phases
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardocerqueira committed Oct 5, 2024
1 parent abc0576 commit 25577d4
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/docker-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3

# setup node env
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'

- name: Install dependencies
run: npm install

# run tests
- name: Run tests
run: npm test

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/pr-check-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI PR Check

on:
push:
branches:
- main
- dev
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

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

# setup node env
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'

- name: Install dependencies
run: npm install

# run tests
- name: Run tests
run: npm test

0 comments on commit 25577d4

Please sign in to comment.