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