Skip to content

Merge branch 'release/2.1.1' into main #4

Merge branch 'release/2.1.1' into main

Merge branch 'release/2.1.1' into main #4

Workflow file for this run

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