Skip to content

Commit

Permalink
Add CI workflow for quick_start_express. (#56)
Browse files Browse the repository at this point in the history
* Add GitHub Actions CI to run Jest tests on push to main.

* Fix bug to remove redundant `-`.

* Remove `npm cache` option.

* Update runJestTests.yml

* Update runJestTests.yml

* Simulate a test failure to verify if the CI works.

* Yayy CI works. Removing the test simulation to restore.

* Add actions passing badge to README.

* Fix passing badge in README.

* Customize name of job to be self-explanatory.
  • Loading branch information
Ashrockzzz2003 authored Dec 5, 2024
1 parent f3b15ad commit da5a32d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/runJestTests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: quick_start_express CI

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

jobs:
run_jest_tests:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository.
uses: actions/checkout@v4

- name: Use Node.js LTS.
uses: actions/setup-node@v4
with:
node-version: '22.x'

- name: Install Dependencies.
run: npm i

- name: Run Jest tests.
run: npm test
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[![npm latest published version](https://img.shields.io/npm/v/quick_start_express)](https://www.npmjs.com/package/quick_start_express)
[![npm downloads last 18 months](https://img.shields.io/npm/d18m/quick_start_express)](https://www.npmjs.com/package/quick_start_express)
[![npm last updated](https://img.shields.io/npm/last-update/quick_start_express)](https://www.npmjs.com/package/quick_start_express)
[![build status](https://img.shields.io/github/actions/workflow/status/CSE-25/quick_start_express/runJestTests.yml)](https://github.com/CSE-25/quick_start_express)

# Quick Start Express

Expand Down

0 comments on commit da5a32d

Please sign in to comment.