Skip to content

Commit 1312c52

Browse files
Add GitHub Actions test workflow and status badge
1 parent 01827db commit 1312c52

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 20
17+
cache: yarn
18+
- run: yarn install --frozen-lockfile
19+
- run: yarn test

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
[![TypeScript](https://img.shields.io/badge/TypeScript-3178C6?style=for-the-badge&logo=typescript&logoColor=white)]()
44
[![Node.js](https://img.shields.io/badge/Node.js-339933?style=for-the-badge&logo=nodedotjs&logoColor=white)]()
5-
[![Vitest](https://img.shields.io/badge/Vitest-6E9F18?style=for-the-badge&logo=vitest&logoColor=white)]()
5+
[![Vitest](https://img.shields.io/badge/Vitest-2dce6d?style=for-the-badge&logo=vitest&logoColor=white)]()
6+
[![Tests](https://github.com/christopherrobin/nuforc-scraper/actions/workflows/test.yml/badge.svg)](https://github.com/christopherrobin/nuforc-scraper/actions/workflows/test.yml)
67
[![MIT License](https://img.shields.io/badge/license-MIT-333333?style=for-the-badge)](LICENSE)
78

89
A Node.js/TypeScript scraper that collects UFO sighting data from the [National UFO Reporting Center (NUFORC)](https://nuforc.org) database.

0 commit comments

Comments
 (0)