Skip to content

Commit

Permalink
Merge pull request #76 from f-klubben/node-ci
Browse files Browse the repository at this point in the history
Add Node-CI action
  • Loading branch information
krestenlaust authored May 22, 2024
2 parents 5195c75 + b59896d commit d634d52
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build_songs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ jobs:
repository: f-klubben/sangbog
path: sangbog

- name: Install pandoc
uses: r-lib/actions/setup-pandoc@v2

- name: Build songs
run: python util/build_songs.py

Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Node.js CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Get Repo
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Get Songbook
uses: actions/checkout@v3
with:
repository: f-klubben/sangbog
path: sangbog

- name: Build songs
run: python util/build_songs.py

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm i
- run: npm run build
# Re-enable whenever tests are added
#- run: npm test

0 comments on commit d634d52

Please sign in to comment.