40 lines
565 B
YAML
40 lines
565 B
YAML
# name: CI
|
|
|
|
# on:
|
|
# push:
|
|
# branches:
|
|
# - main
|
|
|
|
# jobs:
|
|
# build:
|
|
# runs-on: ubuntu-latest
|
|
|
|
# steps:
|
|
# - uses: actions/checkout@v4
|
|
# - run: echo "Hello from Gitea Actions"
|
|
|
|
|
|
name: Node API Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Run tests
|
|
run: npm test |