This commit is contained in:
parent
8b3d74630b
commit
fa874c973e
1 changed files with 35 additions and 0 deletions
35
.forgejo/workflows/ci.yml
Normal file
35
.forgejo/workflows/ci.yml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
name: CI for GGS-CRON
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
tags:
|
||||
- 'v*'
|
||||
- 'release-*'
|
||||
jobs:
|
||||
build-and-test:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: node:20-slim
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install OpenSSL
|
||||
run: apt-get update && apt-get install -y openssl libssl-dev
|
||||
- name: Cache npm dependencies
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
- name: Run app
|
||||
run: npm start
|
||||
env:
|
||||
GOOGLE_SERVICE_ACCOUNT_EMAIL: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_EMAIL }}
|
||||
TEST_SHEET_ID: ${{ secrets.TEST_SHEET_ID }}
|
||||
TB_THA_SHEET: ${{ secrets.TB_THA_SHEET }}
|
||||
TB_MYS_SHEET: ${{ secrets.TB_MYS_SHEET }}
|
||||
TB_SGPcy_SHEET: ${{ secrets.TB_SGP_SHEET }}
|
||||
TB_UAE_SHEET: ${{ secrets.TB_UAE_SHEET }}
|
||||
PORT: 36530
|
||||
DEBUG: server:*
|
||||
Loading…
Add table
Add a link
Reference in a new issue