Skip to content
Open

ll #293

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .github/workflows/.ci.yml.swp
Binary file not shown.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

# Trigger workflow on pull requests to main and on push to main
on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
test:
name: Run Tests
runs-on: ubuntu-latest

steps:
# Checkout the code from the PR branch or push branch
- name: Checkout code
uses: actions/checkout@v4

# Setup Node.js environment
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18

# Install dependencies
- name: Install dependencies
run: npm install

# Run tests
- name: Run tests
run: npm test

# Print Node.js version (optional, for verification)
- name: Node version
run: node --version

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ npm run dev
_This starts the server in non-database mode._ It will serve a simple webpage at `http://localhost:8080`.

You do _not_ need to set up a database or any interactivity on the webpage yet. Instructions for that will come later in the course!

dd