2020-12-19 22:01:10 +01:00
|
|
|
name: CI
|
|
|
|
on: [push, pull_request]
|
2022-06-09 01:08:19 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-12-19 22:01:10 +01:00
|
|
|
jobs:
|
2021-07-31 13:29:31 +02:00
|
|
|
test:
|
|
|
|
name: Test
|
2020-12-19 22:01:10 +01:00
|
|
|
runs-on: ubuntu-latest
|
2021-07-31 13:29:31 +02:00
|
|
|
|
2023-10-29 11:58:54 +01:00
|
|
|
strategy:
|
2023-10-29 14:21:13 +01:00
|
|
|
fail-fast: false
|
2023-10-29 11:58:54 +01:00
|
|
|
matrix:
|
2023-10-29 14:21:13 +01:00
|
|
|
node-version: [18, lts/*, latest]
|
2023-10-29 11:58:54 +01:00
|
|
|
|
2020-12-19 22:01:10 +01:00
|
|
|
steps:
|
2021-07-31 13:29:31 +02:00
|
|
|
- name: Checkout repository
|
2023-09-04 12:51:59 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-04-28 11:42:19 +02:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-07-31 13:29:31 +02:00
|
|
|
|
2023-10-29 11:58:54 +01:00
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
2023-10-28 21:02:51 +02:00
|
|
|
uses: actions/setup-node@v4
|
2020-12-19 22:01:10 +01:00
|
|
|
with:
|
2023-10-29 11:58:54 +01:00
|
|
|
node-version: ${{ matrix.node-version }}
|
2021-07-31 13:29:31 +02:00
|
|
|
|
|
|
|
- name: Install Gulp
|
|
|
|
run: npm install -g gulp-cli
|
|
|
|
|
|
|
|
- name: Install other dependencies
|
2023-04-23 12:40:28 +02:00
|
|
|
run: npm install
|
2021-07-31 13:29:31 +02:00
|
|
|
|
2023-11-12 13:41:10 +01:00
|
|
|
- name: Run external tests
|
|
|
|
run: gulp externaltest
|
|
|
|
|
|
|
|
- name: Run CLI unit tests
|
|
|
|
run: gulp unittestcli
|