Skip to content

Commit

Permalink
fix:ci - run build & test
Browse files Browse the repository at this point in the history
  • Loading branch information
lehungio committed Jan 4, 2025
1 parent e07d3a0 commit 579bb81
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 18 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ jobs:
- uses: actions/checkout@v4
- name: scala-bionic
run: docker build . --file ./scala/build/bionic.Dockerfile --tag "scala-bionic:$(date +%s)"
build-scala-mantic:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: scala-mantic
run: docker build . --file ./scala/build/Dockerfile.mantic --tag "scala-mantic:$(date +%s)"
# Deprecated - v2024.4.1
# build-scala-mantic:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: scala-mantic
# run: docker build . --file ./scala/build/mantic.Dockerfile --tag "scala-mantic:$(date +%s)"
build-scala-maintenance:
runs-on: ubuntu-latest
steps:
Expand Down
24 changes: 14 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
Get-Process
# QA
# Ubuntu for QA
# Build Ubuntu for QA
build-ubuntu-qa:
runs-on: ubuntu-latest
steps:
Expand All @@ -119,7 +119,7 @@ jobs:
run: docker build . --file ./qa/build/scala.Dockerfile --tag "qa-scals:$(date +%s)"

# PROGRAMMING LANGUAGE
# PHP
# Build latest PHP version
build-php-latest:
runs-on: ubuntu-latest
steps:
Expand All @@ -133,7 +133,7 @@ jobs:
- name: php-fpm
run: docker build . --file ./php/beta.Dockerfile --tag "php:$(date +%s)"

# SCALA
# Build latest SCALA version
build-scala-latest:
runs-on: ubuntu-latest
steps:
Expand All @@ -146,12 +146,14 @@ jobs:
- uses: actions/checkout@v4
- name: scala-bionic
run: docker build . --file ./scala/build/bionic.Dockerfile --tag "scala-bionic:$(date +%s)"
build-scala-mantic:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: scala-mantic
run: docker build . --file ./scala/build/mantic.Dockerfile --tag "scala-mantic:$(date +%s)"
# Deprecated - v2024.4.1
# build-scala-mantic:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: scala-mantic
# run: docker build . --file ./scala/build/mantic.Dockerfile --tag "scala-mantic:$(date +%s)"
# Build maintenance SCALA version
build-scala-maintenance:
runs-on: ubuntu-latest
steps:
Expand All @@ -160,7 +162,7 @@ jobs:
run: docker build . --file ./scala/build/maintenance.Dockerfile --tag "scala-maintenance:$(date +%s)"

# APPLICATIONS
# JENKINS
# Build latest JENKINS version
build-jenkins-latest:
runs-on: ubuntu-latest
steps:
Expand All @@ -169,6 +171,7 @@ jobs:
run: docker build . --file ./jenkins/latest.Dockerfile --tag "jenkins-latest:$(date +%s)"

# PUPPETEER
# Build latest PUPPETEER version
build-puppeteer-latest:
runs-on: ubuntu-latest
steps:
Expand All @@ -178,6 +181,7 @@ jobs:

# TEST
# API TEST WITH POSTMAN
# MacOS: curl -sL https://dl-cli.pstmn.io/install/osx_64.sh | bash
# https://cloudy-shadow-800513.postman.co/workspace/lecaoquochung~885e6b40-0422-488c-8ab6-2f85ee3179ca/api/1512548b-2196-422a-8a3c-b8d374f227f9?action=share&creator=15804725&active-environment=15804725-addaf00d-1d92-4909-9256-0fa91ac840ac
test-postman:
needs: build-ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# This version only using for package.json inspect code
# This version will not be used in Dockerfile
v20
3 changes: 2 additions & 1 deletion qa/build/scala.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \

# Install Node.js and npm
RUN apt-get install -y nodejs npm && \
npm install -g n
npm install -g n && \
n 20

# Install Java 11 (Amazon Corretto)
RUN wget -O- https://apt.corretto.aws/corretto.key | apt-key add - && \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ PATH="/home/qa/.yarn/bin:/home/qa/.local/bin:${PATH}" \
QA_PATH="/home/qa/code"

# Update package index and install system dependencies
# Deprecated:v2024.4.1
# The error indicates that the repositories for the mantic release
# do not have a Release file, which means they are not available.
# You can switch to a stable Ubuntu release like jammy (22.04 LTS) to resolve this issue.
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git curl iputils-ping telnet vim gnupg unzip wget python3 python3-venv \
Expand Down

0 comments on commit 579bb81

Please sign in to comment.