Skip to content

Commit

Permalink
Run tests with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
redsummernight committed Apr 8, 2023
1 parent c390767 commit a965c01
Show file tree
Hide file tree
Showing 3 changed files with 369 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI

on:
push:
pull_request:
branches:
- main
schedule:
# Run weekly, 00:00 on Friday
- cron: '0 0 * * 5'
workflow_dispatch:

jobs:
test:
name: npm test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- run: npm ci
- run: npm test
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# ao3-citation-generator

[![Build Status](https://github.com/redsummernight/ao3-citation-generator/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/redsummernight/ao3-citation-generator/actions/workflows/ci.yml?query=branch%3Amain)

This user script generates citations for fan works on [Archive of Our Own](https://archiveofourown.org/).

Citations are automatically added to the information section at the top of each work/chapter page.
Expand Down
342 changes: 342 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a965c01

Please sign in to comment.