Updated ci.yml
Some checks failed
CI for GGS-CRON / build-docker (push) Failing after 4s

This commit is contained in:
Ittipat Lusuk 2025-08-07 11:15:08 +07:00
parent 6eb03b5afd
commit 002d88a94e

View file

@ -7,31 +7,31 @@ on:
- 'v*'
- 'release-*'
jobs:
build-and-test:
runs-on: docker
container:
image: node:20-slim
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up timezone
run: |
apt-get update && apt-get install -y tzdata
ln -snf /usr/share/zoneinfo/Asia/Bangkok /etc/localtime
echo "Asia/Bangkok" > /etc/timezone
rm -rf /var/lib/apt/lists/*
- name: Cache npm dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm install
- name: Show heartbeat.js version and changelogs
run: |
awk '/const heartbeatApiInfo = {/,/};/' plugins/heartbeat.js | sed -n '/version:/,/],/p'
# build-and-test:
# runs-on: docker
# container:
# image: node:20-slim
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# - name: Set up timezone
# run: |
# apt-get update && apt-get install -y tzdata
# ln -snf /usr/share/zoneinfo/Asia/Bangkok /etc/localtime
# echo "Asia/Bangkok" > /etc/timezone
# rm -rf /var/lib/apt/lists/*
# - name: Cache npm dependencies
# uses: actions/cache@v3
# with:
# path: ~/.npm
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-node-
# - name: Install dependencies
# run: npm install
# - name: Show heartbeat.js version and changelogs
# run: |
# awk '/const heartbeatApiInfo = {/,/};/' plugins/heartbeat.js | sed -n '/version:/,/],/p'
# - name: Run application
# run: npm start
# env:
@ -46,7 +46,7 @@ jobs:
# DEBUG: server:*
build-docker:
runs-on: docker
needs: build-and-test
# needs: build-and-test
steps:
- name: Checkout code
uses: actions/checkout@v4