This commit is contained in:
parent
6eb03b5afd
commit
002d88a94e
1 changed files with 26 additions and 26 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue