Skip to content

Commit

Permalink
adding .github nodejs actions
Browse files Browse the repository at this point in the history
  • Loading branch information
etaoin-shrdlu committed Sep 28, 2024
1 parent faf19ce commit ab47fa8
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Node.js CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Install dependencies
run: make install

- name: Run server
run: make run &

- name: Wait for server to start
run: sleep 10

- name: Test server is running
run: curl -I http://localhost:3000

- name: Stop server
run: kill $(lsof -t -i:3000) || true

0 comments on commit ab47fa8

Please sign in to comment.