Merge branch '#450' #165
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# SPDX-FileCopyrightText: 2021 Robin Schneider <[email protected]> | |
# | |
# SPDX-License-Identifier: CC0-1.0 | |
name: Continuous Integration | |
"on": | |
- "push" | |
- "pull_request" | |
jobs: | |
build: | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
node-version: | |
# Support policy: We support every Node.js version that is still "maintained". | |
# Testing unmaintained versions serves no purpose. | |
- "10.x" | |
# 12 is in Debian stable but not supported by upstream anymore. Keep it for now. | |
- "12.x" | |
- "14.x" | |
- "15.x" | |
# TODO: Does not work without updating integration tests? Needs work. | |
# - "16.x" | |
# - "17.x" | |
# - "18.x" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Add ~/.local/bin to $PATH | |
run: 'printf "%s/.local/bin\n" "${HOME}" >> ${GITHUB_PATH}' | |
- name: Get npm cache directory | |
id: npm-cache-dir | |
run: | | |
echo "::set-output name=dir::$(npm config get cache)" | |
- uses: actions/cache@v3 | |
# use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true' | |
id: npm-cache | |
with: | |
path: ${{ steps.npm-cache-dir.outputs.dir }} | |
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node-${{ matrix.node-version }}- | |
- name: Install dependencies | |
run: make dependencies-get | |
- run: make check-full |