Skip to content

Commit

Permalink
Merge branch 'release/2.1.1' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
kjwierenga committed Jan 16, 2025
2 parents fa96b74 + d363907 commit a2104ae
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- develop

jobs:
ci:
name: "Lint & Test"
runs-on: ubuntu-latest
timeout-minutes: 10
env:
TZ: Europe/Amsterdam # some tests depend on this

steps:
- uses: actions/checkout@v4
- uses: FedericoCarboni/setup-ffmpeg@v3
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 16
cache: npm

- name: Get npm cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}

- name: Cache npm dependencies
uses: actions/cache@v4
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Test
run: npm run test

concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## Release 2.1.1
- [add] GH Action for CI testing (lint and test)

## Release 2.1.0
- [add] Publish dist directory
Merge tag '2.0.0' into develop
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,10 @@ You will need the following things properly installed on your computer.
## Testing

* `npm test`

## Release

* `npm install`
* `npm build`
* Commit the new dist files
* `kdgm-release x.y.z`

0 comments on commit a2104ae

Please sign in to comment.